jazminecat
Programmer
Hi, I have the following Query:
Here's my issue. the field tbl_main.subrecipient is a Yes/No field. The user just checks a box on a main form to populate this field.
Since the value for Y/N is actually stored as a number, they would have to enter 0 in the above query's parameter box to answer no to the question, and 1 to answer yes. obviously this isn't intuitive for most users. I phrased the question in red just to try to arrive at a phrasing that would work, but then realized it didn't matter, since they have to enter 1 or 0. *sigh*
Is there a way to make the parameter request box pop up with a different format - i.e. to say "select the type of contract you want" and then show a check box or option group wherein the user can tick either subrecipient, or contract, and then use that to run the query based on the user selection?
thanks in advance, and have a good weekend.
Code:
[red]PARAMETERS [Do you want to see subrecipients?] Bit;[/red]
SELECT tbl_main.wccontract, tbl_main.title, tbl_main.desc, tbl_main.origgrantawd, tbl_main.amendgrantawd, tbl_main.begdate, tbl_main.orig_enddate, tbl_main.amend_enddate, tbl_main.gcontact, tbl_gcontacts.firstname, tbl_gcontacts.lastname, qry_recip.manager, qry_recip.wcfirstname, qry_recip.wclastname, tbl_main.fvendorid, tbl_main.fcontract, tbl_main.svendorid, tbl_main.scontract, tbl_main.lvendorid, tbl_main.lcontract, tbl_main.subrecipient
FROM (tbl_main LEFT JOIN tbl_gcontacts ON tbl_main.gcontact = tbl_gcontacts.gcontact) INNER JOIN qry_recip ON tbl_main.wccontract = qry_recip.wccontract
WHERE (((tbl_main.begdate) Between #12/31/2004# And #12/31/2005#) AND ((tbl_main.subrecipient)=[Do you want to see subrecipients?]));
Here's my issue. the field tbl_main.subrecipient is a Yes/No field. The user just checks a box on a main form to populate this field.
Since the value for Y/N is actually stored as a number, they would have to enter 0 in the above query's parameter box to answer no to the question, and 1 to answer yes. obviously this isn't intuitive for most users. I phrased the question in red just to try to arrive at a phrasing that would work, but then realized it didn't matter, since they have to enter 1 or 0. *sigh*
Is there a way to make the parameter request box pop up with a different format - i.e. to say "select the type of contract you want" and then show a check box or option group wherein the user can tick either subrecipient, or contract, and then use that to run the query based on the user selection?
thanks in advance, and have a good weekend.