I want to check if a given item is already there in a table.
Table: Participants
definition primary key:
Name (characterfield)
Number
Before I insert the values I get from the form (it is independent of any tables) I want to check if de PK is already there in VBA.
I tried .Nomatch (this I don't get to work) and DoCmd.runSQL (I use a count(*) in a select, but won't get the results back to use further.
HELP!!
Table: Participants
definition primary key:
Name (characterfield)
Number
Before I insert the values I get from the form (it is independent of any tables) I want to check if de PK is already there in VBA.
I tried .Nomatch (this I don't get to work) and DoCmd.runSQL (I use a count(*) in a select, but won't get the results back to use further.
HELP!!