Just a few things I want to be sure I am understanding properly:
1. In my DB I use a PartNum field set as text. The part numbers consist of a series of numbers (usually 6 numbers but not always.) On occasion the numbers will have a letter suffix (123456-A) or a letter prefix (S123456) or sometimes both (S123456-A) All 3 of these samples would be different parts in our system. If I want to check if an entered part number is one of about 4 different parts so I can have a warning pop-up using a MsgBox, then I would have to do a String comparison rather than a direct If PartNum = "S123456-A" Then MsgBox.....
2. Subs do things, Functions return results that can then be used in a Sub to do other things.
3. If I am checking the contents of a field entered on a form, the best time to check it is using the "Before update" event for that field on the form (See #1.) I am not really sure about this one.
Thanks Again to everyone for helping guide me through this adventure called Access.
1. In my DB I use a PartNum field set as text. The part numbers consist of a series of numbers (usually 6 numbers but not always.) On occasion the numbers will have a letter suffix (123456-A) or a letter prefix (S123456) or sometimes both (S123456-A) All 3 of these samples would be different parts in our system. If I want to check if an entered part number is one of about 4 different parts so I can have a warning pop-up using a MsgBox, then I would have to do a String comparison rather than a direct If PartNum = "S123456-A" Then MsgBox.....
2. Subs do things, Functions return results that can then be used in a Sub to do other things.
3. If I am checking the contents of a field entered on a form, the best time to check it is using the "Before update" event for that field on the form (See #1.) I am not really sure about this one.
Thanks Again to everyone for helping guide me through this adventure called Access.