Tool Combo

Tool Combo

What is an easy way to pick a master combination lock with hous hold tools (paper clips, safety pins etc?

I Cant remember what my combo for my master combo lock is so is there an easy way to pick it with a set of household tools (paper clips, safety pins etc)

Okay, you cant pick a freakin combanation lock. If you forgot the
combo get a new one, there like three bucks. If it is locking something, than use a pair of bull-cutters to snap it.

DEWALT 18v CORDLESS DRILL DCK265L DCD760 DCF826 Lithium DEWALT 18v CORDLESS DRILL DCK265L DCD760 DCF826 Lithium Paypal 0 Bid US $259.99 28m
Craftsman 12 point 1 1 4in SAE Combination Wrench Craftsman 12 point 1 1 4in SAE Combination Wrench Paypal 1 Bid US $8.99 28m
CH Framing Finish Brad Nailer Stapler Nail Gun Kit CH Framing Finish Brad Nailer Stapler Nail Gun Kit Paypal US $109.99 32m
NEW Craftsman 6 PC Metric combination wrench set 12 pt NEW Craftsman 6 PC Metric combination wrench set 12 pt Paypal 1 Bid US $6.99 43m
NEW Craftsma 6 piece SAE combination wrench set 12 pt NEW Craftsma 6 piece SAE combination wrench set 12 pt Paypal 1 Bid US $6.99 44m
FLEXIBLE SHAFT GRINDER CARVER FLEX ROTARY CARVING TOOL FLEXIBLE SHAFT GRINDER CARVER FLEX ROTARY CARVING TOOL Paypal 0 Bid US $49.99 49m
1 4 AIR ANGLE DIE GRINDER CUTTING POLISHING AIR TOOLS 1 4 AIR ANGLE DIE GRINDER CUTTING POLISHING AIR TOOLS Paypal 0 Bid US $21.99 51m
Craftsman 4 in 1 Level and Laser Guided Measuring Tool Craftsman 4 in 1 Level and Laser Guided Measuring Tool Paypal 1 Bid US $19.99 1h 10m
Benchtop Belt Disc Sander Wilton 6 Amp 4 5 Horsepower Benchtop Belt Disc Sander Wilton 6 Amp 4 5 Horsepower Paypal 0 Bid US $229.99 1h 19m
New Craftsman 5pc STD Combination Wrench Set New Craftsman 5pc STD Combination Wrench Set Paypal US $10.00 1h 44m
J H WILLIAMS 1191 Combination Wrench 12 Pt 2 1 16 J H WILLIAMS 1191 Combination Wrench 12 Pt 2 1 16 Paypal 1 Bid US $24.58 1h 45m
New Craftsman 5pc MM Combination Wrench Set New Craftsman 5pc MM Combination Wrench Set Paypal 2 Bids US $5.24 1h 47m
Makita 18V Lithium Ion 4 Tool Combo Drill Saw Impact Makita 18V Lithium Ion 4 Tool Combo Drill Saw Impact Paypal 2 Bids US $320.02 1h 48m
6 TITANIUM CARBIDE CHROME 7 1 4CIRCULAR SAW BLADES 6 TITANIUM CARBIDE CHROME 7 1 4CIRCULAR SAW BLADES Paypal US $24.99 1h 53m
CRAFTSMAN HUGE 13 PIECE SAE COMBINATION WRENCH SET CRAFTSMAN HUGE 13 PIECE SAE COMBINATION WRENCH SET Paypal 0 Bid US $35.97 2h 6m
DEWALT dc9096 2 18 Volt Double Battery Pack DEWALT dc9096 2 18 Volt Double Battery Pack Paypal 12 Bids US $64.00 2h 9m
NEW 3pc TORX SCREWDRIVER SET T 10 T 15 T 20 TORX NEW 3pc TORX SCREWDRIVER SET T 10 T 15 T 20 TORX Paypal 1 Bid US $.99 2h 10m
30pc Combo Hex Key Allen Wrench Set SAE MM Hand Tools 30pc Combo Hex Key Allen Wrench Set SAE MM Hand Tools Paypal 0 Bid US $9.95 2h 13m
36v CORDLESS DIE GRINDER works w Dremel Bits FREE 36v CORDLESS DIE GRINDER works w Dremel Bits FREE Paypal 0 Bid US $16.83 2h 36m
15pc Tungsten Carbide Woodworking 1 4 ROUTER BIT SET 15pc Tungsten Carbide Woodworking 1 4 ROUTER BIT SET Paypal 0 Bid US $15.96 2h 39m
3 HSS M2 TITANIUM STEP DRILL BITS 28 SIZES 3 16 3 4 3 HSS M2 TITANIUM STEP DRILL BITS 28 SIZES 3 16 3 4 Paypal 0 Bid US $8.97 2h 40m
PRO QUALITY 10pc HEX KEY WRENCH SET Metric ALLEN TOOL PRO QUALITY 10pc HEX KEY WRENCH SET Metric ALLEN TOOL Paypal 0 Bid US $7.24 2h 41m
ON SALE 26pc DRUM SANDER Sanding KIT w SNAP IN CASE ON SALE 26pc DRUM SANDER Sanding KIT w SNAP IN CASE Paypal 0 Bid US $6.99 2h 41m
9 pc 1 2 Dr METRIC SOCKET WRENCH SET ON SNAP IN RAIL 9 pc 1 2 Dr METRIC SOCKET WRENCH SET ON SNAP IN RAIL Paypal 0 Bid US $8.23 2h 44m
2200rpm AIR CUTTING SHEET METAL SHEARS FABRICATION HVAC 2200rpm AIR CUTTING SHEET METAL SHEARS FABRICATION HVAC Paypal 0 Bid US $23.98 2h 48m

Ms Access Tip: Self Learning Combo Box

Database data entry can be tedious at times. You can make your databases more user friendly if they have a way to select data to enter rather than typing in the same data over and over. Access provides a form control called a combo box to help with this task but it can lead to trouble. Also, if you find that the data is redundant, you will probably want to be able to sort on that field in the future for reporting. The combo box allows the user to select inputs from a preset location like a table, a list of values, or a preset query. This works well unless the option you want to enter is not in the preset data. Access will not let you put in a new value unless you set the Limit to List option to No. Then, users are allowed to put in any data without checks. This can be troublesome. The value of having the combo box can be quickly diminished if users are misspelling data as they enter it or using different data to mean the same thing. This is very easily seen as you can define the United States as US, USA, United States, United States of America all meaning the same thing. Subsequent reporting would be inaccurate with misspelled input and dissimilar input for the same field.

To over come that problem, it would be handy to have code that asks the user to confirm a new entry into the table before they go ahead, just to make sure they entered what they meant to. This example shows you how to accomplish this with what I call a self learning combo box. Meaning, it learns new entries and adds them to the list of preset values, but requests a confirmation from the user if the entry is not already in the table. Use the following to create a simple form to demonstrate the self learning combo box and make it a feature you give your users in the future.

Create a new database and do the following steps:

Set references by adding the Microsoft DAO 3.6 Object Library to the current checked list. Do this by opening the VBA editor and clicking on Tools/References then checking the library from the list.

Create a table named contacts with these fields.

ConId as autonumber set as the primary key field

ConName as text

ConType as text

Fill in a line or two of test data before going on to the next step.

Design a very simple form for the example with one text box and two combo box controls on it.

Set the form’s data source to contacts

Set the control source for the text box as ConName and name it ConName on the Other Tab

Set the control source for the first combo box as ConType and name it xType

Set the Row Source to SELECT Contacts.ConType FROM Contacts GROUP BY Contacts.ConType;

Set the control source for the second combo box to ConType and name it Type

You can do this later if you want, but you can set the Format control for Visible to No for this combo box.

In Design View of the Form cut and copy in the following Form Code

Option Compare Database

Private Sub Type_NotInList(NewData As String, Response As Integer)

Me.Type.LimitToList = False

End Sub

Private Sub xType_AfterUpdate()

Dim Resp

MiSQL = "SELECT ConTypes.ConTypes FROM ConTypes WHERE (((ConTypes.ConTypes)='" & xType & "'));"

GetMiRSet ‘ calls the function GetMiRSet from a module

If MiRec.RecordCount = 0 Then

Resp = MsgBox("The Type entered '" & xType & "' is not in list. Do you wish to add? Press OK or CANCEL..", vbOKCancel, xType & " Not On List")

If Resp = 1 Then

MiSQL = "INSERT INTO ConTypes ( ConTypes ) SELECT '" & xType & "' AS x1;"

PutMiRSet ‘calls the function PutMiRSet from a module

MiSQL = "SELECT ConTypes.ConTypes FROM ConTypes WHERE (((ConTypes.ConTypes)='" & xType & "'));"

GetMiRSet

Me.Type.Requery

Me.Type = MiRec!ConTypes

Form.Refresh

Else

xType = Null

End If

Else

Me.Type = MiRec!ConTypes

Form.Refresh

End If

End Sub

Now close the form and save it.

Next you will create a handy new module you can use in any database to save a little work.

This code is handy in Access because it makes it a little quicker to work with Recordsets by predefining command options ahead of time. Using this module you can simply call GetMiRSet when you want data from a table and PutMiRSet when you want to put data into a table with VBA. The required input for both functions is the SQL string defined as MiSQL. It is needed to define the data set you want to use in the format like the following:

MiSQL = "INSERT INTO ConTacts( ConType ) SELECT '" & xType & "' AS x1;"

You should see a line similar to this in the above list of commands.

Hint: Use the New Query function to create your SQL statements. After you have designed them in Design View, change to SQL view and you will see the SQL string. Copy this and place it into the VBA editor to save some time. You may have to make some modification to the SQL string you copy after you put it into your VBA code on the form. Like in our example, you can see where we are using the xType control name like a variable in the string. You can’t do this inside the string quotes so you have to concatenate two strings together with the & symbol. Also, in this sql string, xType is a string, so if you want to put it into the statement, like all strings, it has to be inside quotes. But, since the string is in a string, use single quotes. It will help to put a debug.print MiSQL statement after this line to see how Access is going to interpret the string.

Now create a New Module and put the following lines into it and save it under any name.

Option Compare Database

Option Explicit

Public MiSQL As String, Midb As Database, MiRec As DAO.Recordset, MiRec2 As DAO.Recordset

Public Function GetMiRSet()

Set Midb = CurrentDb()

Set MiRec = Midb.OpenRecordset(MiSQL, dbOpenDynaset)

End Function

Public Function GetMiRSet2()

Set Midb = CurrentDb()

Set MiRec2 = Midb.OpenRecordset(MiSQL, dbOpenDynaset)

End Function

Public Function PutMiRSet()

Dim Midb As Database ', MiRec As DAO.Recordset

Set Midb = CurrentDb()

Midb.Execute MiSQL

End Function

You are done. Go back to the form and give it a try. Enter a new value in the text box and then enter a new value in the first combo box and you should get a message box asking you to confirm the entry.

You can find a working example database at http://www.biomationsystems.com/AccessTips.htm

About the Author

Jon Watson is the founder of Biomation Systems, Inc. With 26 years experience helping Fortune 500 companies with process improvement he formed BioMation to bring the same expertise to smaller companies that need the same improvements at an affordable price.

Tool Combo

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)