Hi guys I'm trying to learn to put code on access but so far I haven't been succesfull. For example I tried to test a couple lines of code to check that a form checks for duplicates if I enter a persons name more than once.
here is the code.
Private Sub State_AfterUpdate()
IfNot IsNull(DLookup("[LastName]", "Customers", "CustomerID=" & Forms!Customers!LastName & ""
Then MsgBox ("That entry used,blah.."
End If
End Sub
I get a Compaile error and I do not know how to find out what is wrong.
Thanks
here is the code.
Private Sub State_AfterUpdate()
IfNot IsNull(DLookup("[LastName]", "Customers", "CustomerID=" & Forms!Customers!LastName & ""
End If
End Sub
I get a Compaile error and I do not know how to find out what is wrong.
Thanks