L
LDMueller
Hello,
I have Access 2003. I tried to get information on this before, but perhaps
I didn't explain it well.
I have a table named Category with several fields named GumChewing,
Sweetener, Flavor, etc. and these fields have a Data Type of Yes/No and a
Format of True/False. The Default Value is False and the Display Control for
these fields is Check Box.
I have a query that uses the Category table and has criteria for the fields
as follows:
Like "*" & [Forms]![F_CatSearch]![txtGumChewing]
Like "*" & [Forms]![F_CatSearch]![txtSweetener]
Like "*" & [Forms]![F_CatSearch]![txtFlavor]
I wanted a form with check boxes for GumChewing, Sweetener, Flavor, etc.
where the user could check the items they want and with the click of a button
the output would be any items which contained only the items they checked.
Since I couldn't figure this out, I have a form with several Text Boxes
named txtGumChewing, txtSweetener, txtflavor, etc. At this time, the user
can input -1 for each field they want to select and it pulls the correct
data. It would be nice if I could at least figure out how to allow the user
to use a "y" for "yes" instead of the "-1".
The closest I could come was to change the criteria for the fields in the
Query to something like the following. Entering "Y" works, but it prompts
for each field instead of allowing me to put a "Y" in the box on the form.
IIf( [Forms]![F_CatSrch]![cboGumChewing] = "y", -1, 0 )
Any help would be greatly appreciated!
I have Access 2003. I tried to get information on this before, but perhaps
I didn't explain it well.
I have a table named Category with several fields named GumChewing,
Sweetener, Flavor, etc. and these fields have a Data Type of Yes/No and a
Format of True/False. The Default Value is False and the Display Control for
these fields is Check Box.
I have a query that uses the Category table and has criteria for the fields
as follows:
Like "*" & [Forms]![F_CatSearch]![txtGumChewing]
Like "*" & [Forms]![F_CatSearch]![txtSweetener]
Like "*" & [Forms]![F_CatSearch]![txtFlavor]
I wanted a form with check boxes for GumChewing, Sweetener, Flavor, etc.
where the user could check the items they want and with the click of a button
the output would be any items which contained only the items they checked.
Since I couldn't figure this out, I have a form with several Text Boxes
named txtGumChewing, txtSweetener, txtflavor, etc. At this time, the user
can input -1 for each field they want to select and it pulls the correct
data. It would be nice if I could at least figure out how to allow the user
to use a "y" for "yes" instead of the "-1".
The closest I could come was to change the criteria for the fields in the
Query to something like the following. Entering "Y" works, but it prompts
for each field instead of allowing me to put a "Y" in the box on the form.
IIf( [Forms]![F_CatSrch]![cboGumChewing] = "y", -1, 0 )
Any help would be greatly appreciated!