If "Yes" then all others "No"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm not sure how to design this. I have a table with these 3 pertinent fields:

tblPKFMsMaterialLayers
txtProfileID (PK)
txtLayer (PK)
txtFoodContact

This table is for many in a one-to-many relationship with tblPKFMAttributes.

txtFoodContact is set to True and its values are "Yes" and "No". Only one
txtLayer record can be "Yes" and all others must be "No" for any related
record in tblPKFMAttributes.

How can I set this up? As it stands I can select "Yes" for all txtLayer
records for a related record in tblPKFMAttributes.

Thanks for your help!
 
not considering possible enhancement(s) to yr datamodell, you have to
keep a strict validation concept in yr interface ensuring that one record
for txtLayer can be set to True in tblPKFMAttributes.

No info on yr forms, so can't advise on how to enforce the abovementioned
validation.

Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top