View Single Post
  #2  
Old October 23rd, 2009, 11:48 PM posted to microsoft.public.access.tablesdbdesign
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Table validation rule - allow only one occurence in a field

jaworski_m wrote:
Hello,
Suppose there's a table (many side):

ID (PK)
ID_foreign (FK)
field 1
field 2
yes/no field

How can I allow ONLY ONE record to have "yes/no field" = True? (with table
validation rule)
In case a user sets a second record "yes/no field" = True an error is
triggered.

What happens when you add a unique index (no duplicates) to the yes/no field?
Thank you for suggestions.

Access 2003


--
Message posted via http://www.accessmonster.com