Brian Martin
Registered User.
- Local time
- Today, 10:17
- Joined
- Jul 24, 2002
- Messages
- 68
I have a form on which the user adds in the part details and then clicks a button to add this new part to the parts table. Each part starts with a certain code eg. HP-A = the code and HP-A-1001 = a part number based on this code. There are many other different codes. I have a table that stores the codes themselves. I want to add code to my button that says something like:
If NewPartNumber doesn't begin with any of the part codes in the partcodes table THEN
MessageBox"That isn't an existing part code!!"
I have a listbox that displays all of the partcodes from the partcodes table so either this or the actual table could be used to match the part number with a code (or not).
I've not done much vba coding
Any help would be appreciated!!
If NewPartNumber doesn't begin with any of the part codes in the partcodes table THEN
MessageBox"That isn't an existing part code!!"
I have a listbox that displays all of the partcodes from the partcodes table so either this or the actual table could be used to match the part number with a code (or not).
I've not done much vba coding
Any help would be appreciated!!