M
MikeS
When I try to run the following code:
Private Sub ScanSerial_AfterUpdate()
Dim SerialLookup As Variant
SerialLookup = DLookup("[Serial]", "TestData2", "[Serial]= " &
Me.ScanSerial.Text)
If SerialLookup = Empty Then
MsgBox "Serial Number does not exist...would you like to add it?",
vbYesNo
Else
End If
End Sub
I get the following error:
"You cancelled the previous operation"
I have had this issue before and it is usually because of unmatched data
type. However, I have tried changing the data type to everything I can think
of and still can not get it to work.
Can anyone help with this?
Thanks,
MikeS
Private Sub ScanSerial_AfterUpdate()
Dim SerialLookup As Variant
SerialLookup = DLookup("[Serial]", "TestData2", "[Serial]= " &
Me.ScanSerial.Text)
If SerialLookup = Empty Then
MsgBox "Serial Number does not exist...would you like to add it?",
vbYesNo
Else
End If
End Sub
I get the following error:
"You cancelled the previous operation"
I have had this issue before and it is usually because of unmatched data
type. However, I have tried changing the data type to everything I can think
of and still can not get it to work.
Can anyone help with this?
Thanks,
MikeS