How do I return only selected fields for a record?

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

Guest

I have a Table that allows you to select several "yes/no" option boxes for
different fields. How can I make is so only the Fields that have a "yes"
selected will show up in a Query?
 
SELECT myTable.myField1, myTable.myField2, myTable.myCheckbox1,
myTable.mycheckbox2
FROM myTable
WHERE (myTable.myCheckbox1 = True) OR (myTable.MyCheckbox2 = True);

HTH
 

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