100 YES/NO fields

T

TonyTOCA

I want to design a table to store data on labtest aquisitions, to
print out labels later. It will be a list with 100 different tests,
every test with its own checkbox which you can select. Is it possible
to store only the "Yes" values and discard the "NO's ?
 
D

Duane Hookom

If your table is properly normalized, you could save only the Yes values
(records). Can you change your table structure so that each text score
becomes a record rather than a field?

tblAquisitionHeader
==============
AquID autonumber primary key
AquDate Date of
AquOtherFields other fields

tblAquisitionDetails
==============
AqDID autonumber primary key
AquID link to tblAquisitionHeader.AquID
AquTestID what was the test (formerly a field name)
AquResult Yes/No (apparently you don't need to store records with "no"
values)
 
T

TonyTOCA

Thx Duane, that's what i had in mind and i 've tried it, but the
problem was: how do i get all the 100 test visible on a form if each
text score is a record?
 
D

Duane Hookom

You could use a continuous form that the user could scroll up and down. If
that doesn't work then you can use an unbound form with 100 check boxes.
Your code can load the values from a record and save the values to a record.

I try to never let a form's desired appearance drive my table structure
decisions.
 
T

TonyTOCA

Okay...an unbound form....but that means i have to put code behind
every checkbox? Or not.
 
D

Duane Hookom

Not really. You use a decent naming convention and possibly set the tag
property of each check box and then have your code loop through the controls
on the form and update your table.
 
T

TonyTOCA

Well, i'm no VBA-wizard but i'll give it a try and check out
formscoding for some pointers. Got some reading to do....I'll get back
to you when i have the code..Many thx :)
 

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

Top