Parameter when checkbox?

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

Guest

Hello!
This might be a silly question but;
How do I make a criteria question when I got a checkbox?
If I type "<[Yes or no]" in the criteria field I just get an error saying
something like:

"This expression is written false, or is maybe too complicated to evaluate"

Someone got an answer, or does it simply not work to have a criteria
question when you are using checkbox?

I would be happy for any answer!
Best wishes from Jorgen
 
Use 0 for False, or -1 for True.

Alternatively, place a check box on a form, and refer to:
[Forms].[Form1].[Checkbox2]
or whatever instead of the [Yes or No] parameter.

It also helps JET to understand the value if you declare the parameter by
choosing Parameters on the Query menu (in query design view.)
 

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

Similar Threads

Filter query with checkboxes 0
criteria, checkboxes, and/or 1
select only one checkbox 2
Parameter Checkbox 2
Help with IIF in Criteria 1
If Statement with "*" in Query 2
Null Parameters 1
Parameter Query 2

Back
Top