How do you use check boxes in user input fields for queries

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

Guest

I am trying to set up a query in which the user has to bring up records
according to a yes/no field. I tried to use the brackets to indicate a user
input when the query starts up but no matter what I type in the field it
keeps giving me an error (i tired yes, "yes", 1, no, "no", 0). Is there a way
that I could have the user check or uncheck the box for yes or no instead of
having to type something in? Any help would be greatly appreciated.
 
Jamil said:
I am trying to set up a query in which the user has to bring up records
according to a yes/no field. I tried to use the brackets to indicate
a user input when the query starts up but no matter what I type in
the field it keeps giving me an error (i tired yes, "yes", 1, no,
"no", 0). Is there a way that I could have the user check or uncheck
the box for yes or no instead of having to type something in? Any
help would be greatly appreciated.


Yes = -1
No = 0
 
You can also use =True for checked fields and =False for unchecked fields,
if that's easier to remember...
 

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