DLookup("[ClientID]", "Clients", "[ClientLastName] = '" & [ClientLastName] &
"' And [ClientFirstName] = '" & [ClientFirstName] & "'")
the syntax may change slightly depending on exactly where you're using this
expression (macro condition, VBA code, etc.).
hth
> I am trying to create a check in my form that looks for any duplicate client
> names. I am using the below code to return the ClientID value if a record
[quoted text clipped - 12 lines]
>
> Any suggestions on a solution???
JeffMKlein - 26 May 2005 02:03 GMT
Tina,
Thanks for the reply. This seems to work great. Thank you very much
Jeff
> DLookup("[ClientID]", "Clients", "[ClientLastName] = '" & [ClientLastName] &
> "' And [ClientFirstName] = '" & [ClientFirstName] & "'")
[quoted text clipped - 21 lines]
> >
> > Any suggestions on a solution???
tina - 26 May 2005 05:44 GMT
you're welcome :)
> Tina,
> Thanks for the reply. This seems to work great. Thank you very much
[quoted text clipped - 28 lines]
> > >
> > > Any suggestions on a solution???