H
Hulo
I have a table with a two state boolean field named "nophoto". Now I
want to create a query which will show all the results (both true and
false), true results only and false results only.
I am using a form named "frmSearch" where there is a text box, also
named "nophoto" to supply data to the query.
1. If the criteria in the query is given as -
[Forms]![frmSearch]![nophoto]
I can supply only the values 1 and 0 from the text box, thereby getting
only the records with either true or false values but not both.
Supplying * does not seem to work, as it does not return any record.
2. So I changed the criteria to -
Like [Forms]![frmSearch]![nophoto]
Now, * and 0 works and returns all records and records with false
values. Strangely when the value of 1 is supplied, no records are
returned, although there are many true values.
How to solve this problem? Why is 0 working but 1 not working in the
later case? Is there any other way to solve the problem, so that I can
get all values, true values and false values according to my choice?
want to create a query which will show all the results (both true and
false), true results only and false results only.
I am using a form named "frmSearch" where there is a text box, also
named "nophoto" to supply data to the query.
1. If the criteria in the query is given as -
[Forms]![frmSearch]![nophoto]
I can supply only the values 1 and 0 from the text box, thereby getting
only the records with either true or false values but not both.
Supplying * does not seem to work, as it does not return any record.
2. So I changed the criteria to -
Like [Forms]![frmSearch]![nophoto]
Now, * and 0 works and returns all records and records with false
values. Strangely when the value of 1 is supplied, no records are
returned, although there are many true values.
How to solve this problem? Why is 0 working but 1 not working in the
later case? Is there any other way to solve the problem, so that I can
get all values, true values and false values according to my choice?