S
spadasak
I have a form where I track custody of wood. The client enters a
registration mumber which pulls up the associated company. The numbers are
now alphanumeric and when I changed the table entry from number to text the
form no longer recognizes the either. Here is the code: Any help would be
appreciated.
Private Sub CustodyNumber_AfterUpdate()
Dim CustodyValid As Variant
CustodyValid = DLookup("CustodyName", "ChainOfCustody", "CustodyNumber = " &
CustodyNumber)
If IsNull(CustodyValid) Then
MsgBox "Invalid Custody Number, Certification denied"
check2.Value = False
CustodyName.Value = ""
Call cmdOK_Click
Else
CustodyName.Value = CustodyValid
End If
End Sub
registration mumber which pulls up the associated company. The numbers are
now alphanumeric and when I changed the table entry from number to text the
form no longer recognizes the either. Here is the code: Any help would be
appreciated.
Private Sub CustodyNumber_AfterUpdate()
Dim CustodyValid As Variant
CustodyValid = DLookup("CustodyName", "ChainOfCustody", "CustodyNumber = " &
CustodyNumber)
If IsNull(CustodyValid) Then
MsgBox "Invalid Custody Number, Certification denied"
check2.Value = False
CustodyName.Value = ""
Call cmdOK_Click
Else
CustodyName.Value = CustodyValid
End If
End Sub