validation test
From: Richardson (junk_at_sbcglobal.net)
Date: 08/27/04
- Next message: Allen Browne: "Re: validation test"
- Previous message: Allen Browne: "Re: DoCmd.RunSQL sql"
- Next in thread: Allen Browne: "Re: validation test"
- Reply: Allen Browne: "Re: validation test"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Aug 2004 15:57:17 GMT
I have a form, frmMembership, based on a table, Membership, with 2 fields of
importance, Fn which references FirstName in the table and Ln which
references LastName in the table.
I want to be able to alert the person entering data that they may be
entering duplicate entries but I do not want to make this a 2 field key
because there are times when the first name - last name combination should
be repeated.
I would like to put a validation on the before update event of both the
first and last name fields that will compare the values to the table. If
that combination exists, I want a message box with an alert. From that
point I know the coding I need.
I used a similar test in another form, but it doesn't seem to work here.
This is the condition I have entered that doesn't work
Dlookup(True,"Membership","[FN]=Membership![FirstName] and
[LN]=Membership![LastName].
Thank you in advance for any assistance you can offer.
Lori
- Next message: Allen Browne: "Re: validation test"
- Previous message: Allen Browne: "Re: DoCmd.RunSQL sql"
- Next in thread: Allen Browne: "Re: validation test"
- Reply: Allen Browne: "Re: validation test"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|