Hi all,
I'm tring to use dcount or dlookup to verify an existing number in a table with no results. TransactionMain is the table-number is set to autonumber (table) and is the one to verify. a1 is an editbox on a form PickingNumbers.Code below;
If DCount("TransactionMain![number]", "TransactionMain", "TransactionMain![number]='" & Forms!PickingNumbers![a1] & "'") = 0 Then
MsgBox "Document no not found. "
Me.a1.SetFocus
Exit Sub
End If
Runtime error 3464! What wrong?
Thanks in advance
Kenneth
I'm tring to use dcount or dlookup to verify an existing number in a table with no results. TransactionMain is the table-number is set to autonumber (table) and is the one to verify. a1 is an editbox on a form PickingNumbers.Code below;
If DCount("TransactionMain![number]", "TransactionMain", "TransactionMain![number]='" & Forms!PickingNumbers![a1] & "'") = 0 Then
MsgBox "Document no not found. "
Me.a1.SetFocus
Exit Sub
End If
Runtime error 3464! What wrong?
Thanks in advance
Kenneth