verify Unique data

Humberto

Registered User.
Local time
Today, 02:41
Joined
Jan 8, 2002
Messages
40
Hello, I'm trying to verify that we get unique data from form "A" to table "DD". the field that Im checking is "DDdate". I'm trying dlookup but I dont really know how to use it. can someone help.
 
this is what I'm using

=IIf(DLookUp("[ddate]","[DD]","[ddate] = Forms![A]![dDate]"),MsgBox("Date is already in database, please enter a unique date."))

Can someone please help!!
 

Users who are viewing this thread

Back
Top Bottom