penfold1992
Registered User.
- Local time
- Today, 11:30
- Joined
- Nov 22, 2012
- Messages
- 169
I have a form that allows me to insert a value into a table. the table holds names of people. If the user wishes to insert a value into the table, id there to be a check to see if this value is already present.
im not exactly sure what the syntax of the code is but Im assuming i would use something like the Dlookup function.
If Dlookup in "Table99,Names", NewSupplier.Value" <>0
Then
msgbox "This name is already present"
I just wish to look up through a table to see if it is the same and if it is, tell the users that it already has that name.
Many people wish to do this for like an ID code but i am not concerned about the number just whether something of the same name exists or not.
thanks.
im not exactly sure what the syntax of the code is but Im assuming i would use something like the Dlookup function.
If Dlookup in "Table99,Names", NewSupplier.Value" <>0
Then
msgbox "This name is already present"
I just wish to look up through a table to see if it is the same and if it is, tell the users that it already has that name.
Many people wish to do this for like an ID code but i am not concerned about the number just whether something of the same name exists or not.
thanks.