View Full Version : ensure value entered in form is unique amongst different fields in two tables


reischaa
11-28-2000, 12:14 PM
I have a text box on a data entry form (which is associated with the Dam table) called DamID. I want to make sure that the ID text that someone enters in this text box is not the same as a BarrierID already in the Barrier table. Any suggestions on how to do this? Thanks.

Jack Cowley
11-28-2000, 03:26 PM
Use DLookup to see if the ID exists. If it does then warn the user to select another ID.