K
kealaz
I have the following code being used on the After Update Event Procedure for
a text box.
**********************************************
If DCount(1, "tblDWGLOG", "PART_NO = '" _
& Me!USED_ON & "'") < 1 Then
MsgBox "Invalid part number. Please re-enter.", _
vbOK, "Missing Data"
Cancel = True
Me.USED_ON = Null
Me.QTY_USED.SetFocus
Me.USED_ON.SetFocus
**********************************************
This code is supposed to check the information entered against records in
the field PART_NO in my table tblDWGLOG. All of the part numbers are
[xxxx-xxxx-A] (where x is a number and A is a rev letter). If the part
number is found, it accepts the entry. If the part number is not found, it
gives an error message, and prompts the user to try again.
When I initially set this up, I forgot about a few exceptions, and need this
text box to also accept the following values, in addition to the values in
the PART_NO field of my table. (but error message on any other values)
ASSEMBLY
CONFIG
CUSTOMER
TOP ASSEMBLY
How do I change the above code to include these as acceptable entries in
this field, and still check the tblDWGLOG table for any other input?
Thank you so much for any assistance you can provide.
a text box.
**********************************************
If DCount(1, "tblDWGLOG", "PART_NO = '" _
& Me!USED_ON & "'") < 1 Then
MsgBox "Invalid part number. Please re-enter.", _
vbOK, "Missing Data"
Cancel = True
Me.USED_ON = Null
Me.QTY_USED.SetFocus
Me.USED_ON.SetFocus
**********************************************
This code is supposed to check the information entered against records in
the field PART_NO in my table tblDWGLOG. All of the part numbers are
[xxxx-xxxx-A] (where x is a number and A is a rev letter). If the part
number is found, it accepts the entry. If the part number is not found, it
gives an error message, and prompts the user to try again.
When I initially set this up, I forgot about a few exceptions, and need this
text box to also accept the following values, in addition to the values in
the PART_NO field of my table. (but error message on any other values)
ASSEMBLY
CONFIG
CUSTOMER
TOP ASSEMBLY
How do I change the above code to include these as acceptable entries in
this field, and still check the tblDWGLOG table for any other input?
Thank you so much for any assistance you can provide.