Check for an existing record based on two fields (1 Viewer)

Chrism2

Registered User.
Local time
Today, 07:03
Joined
Jun 2, 2006
Messages
161
Hi there,

Is there a way to check for an existing record (by dlookup, or otherwise) before inserting a new record?

I have a table [tblActCouseElements] with two fields; one numeric, called courseID and one text, called element

My form allows someone to select from a list of options, which in turn does an SQL insert into the above table. The possible selections are based in the left subform, the actual selections on the right (see db attached)

I just want to prevent someone clicking, and adding twice...

What's best here?

Thanks!
 

Attachments

  • Tables.zip
    222.8 KB · Views: 126

Chrism2

Registered User.
Local time
Today, 07:03
Joined
Jun 2, 2006
Messages
161
Thanks! That link was most useful.

Appreciated.
 

Users who are viewing this thread

Top Bottom