check boxes within a query - criteria yes/no

G

Guest

Hi, I've created a form from a query. When a button is pressed, a question
is run regarding the check box field, being 'Is the student enrolled - 'yes'
or 'no' , the user should enter 'yes' or 'no' (without the commas' to run the
query with the correct information chosen, currently only working with -1 or
0, which users won't know. How do I resolve and get the 'yes' and 'no'
working ?
Cheers
Cheryl
 
J

John W. Vinson

Hi, I've created a form from a query. When a button is pressed, a question
is run regarding the check box field, being 'Is the student enrolled - 'yes'
or 'no' , the user should enter 'yes' or 'no' (without the commas' to run the
query with the correct information chosen, currently only working with -1 or
0, which users won't know. How do I resolve and get the 'yes' and 'no'
working ?
Cheers
Cheryl

Use

=[Forms]![YourFormName]![Checkboxname]

as a criterion for the query rather than making the user reply to a MsgBox.

John W. Vinson [MVP]
 

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