Can anyone help here:
Table is named tblLVR
Field is BusinessName
I want to check the previous existence of this name in the table.
I assign a variable tBusVar to the entered name on it's changed event
and write the following code to see if it is already in:-
If DCount("[BusinessName]", "tblLVR", "[BusinessName] = " & tBusVar) > 0 Then
MsgBox "This current record is a Duplicate"
End If
Run_time Error :'2471':
The expression passed as a query parameter produced this error '<Name entered>'
I can't understand what is happening here. Grateful for any help....
Table is named tblLVR
Field is BusinessName
I want to check the previous existence of this name in the table.
I assign a variable tBusVar to the entered name on it's changed event
and write the following code to see if it is already in:-
If DCount("[BusinessName]", "tblLVR", "[BusinessName] = " & tBusVar) > 0 Then
MsgBox "This current record is a Duplicate"
End If
Run_time Error :'2471':
The expression passed as a query parameter produced this error '<Name entered>'
I can't understand what is happening here. Grateful for any help....