Hi all.
I have a simple table with about 15 fields and a few hundred records. In my data entry form based on the same table, I need to check if a record already exists.
Using the first two unbound fields on my form that accept a text string and a date, I need to check in the underlying table - if these two values exist as a record. Warn (msgbox) and proceed if the text field is found but not the date, as dates can be more than one as per requirement.
If both are found in one record, it's an obvious duplicate. So, no data entry.
Is Dlookup or Dcount the only solution ? If yes, can someone please guide me with the exact syntax ?
Any help will be greatly appreciated.
I have a simple table with about 15 fields and a few hundred records. In my data entry form based on the same table, I need to check if a record already exists.
Using the first two unbound fields on my form that accept a text string and a date, I need to check in the underlying table - if these two values exist as a record. Warn (msgbox) and proceed if the text field is found but not the date, as dates can be more than one as per requirement.
If both are found in one record, it's an obvious duplicate. So, no data entry.
Is Dlookup or Dcount the only solution ? If yes, can someone please guide me with the exact syntax ?
Any help will be greatly appreciated.
