Thanks so much daryl, you have me on the right track. a little snag.
This is what I have:
A form named frmHoaxQuery, (no record source) put in some check boxes with
my criteria.
my qry called qryProb_Hoax (the one I had before). In there. I have this
under the MALE Voice field:
[Forms]![frmHoaxQuery]![child]
However it is returning nothing when i know there should be some. I think I
am missing your instructions on the "yes" part!
Here is the code of my query:
Thanks so much!
SELECT tblSENEIncidentLogCY.IncidentID, tblSENEIncidentLogCY.MISLE_Number,
tblSENEIncidentLogCY.[SENE_CASE_#], tblSENEIncidentLogCY.incident_DTG,
tblSENEIncidentLogCY.[Case Description], tblSENEIncidentLogCY.[NATURE OF
DISTRESS], tblSENEIncidentLogCY.CONTROLLER, tblSENEIncidentLogCY.CWS,
tblSENEIncidentLogCY.HoaxMale, tblSENEIncidentLogCY.HoaxChild,
tblSENEIncidentLogCY.HoaxTimeofCall, tblSENEIncidentLogCY.HoaxDate,
tblSENEIncidentLogCY.TextofHoaxCall, tblSENEIncidentLogCY.HoaxWarwick,
tblSENEIncidentLogCY.[HoaxNew Shoreham], tblSENEIncidentLogCY.[HoaxMarthas
Vineyard], tblSENEIncidentLogCY.HoaxMiacomet,
tblSENEIncidentLogCY.HoaxOrleans, tblSENEIncidentLogCY.[HoaxSignal Hill],
tblSENEIncidentLogCY.HoaxTruro, tblSENEIncidentLogCY.FileName
FROM tblSENEIncidentLogCY
WHERE (((tblSENEIncidentLogCY.HoaxMale)=[Forms]![frmHoaxQuery]![child]));
Daryl S said:
Steph -
Create a new form - no record source for the form. Add the checkboxes with
appropriate descriptions and control names.
Then in your query, in the criteria row below each field, add the value from
the form. You can do this using the 'build' button in query design and
navigate to the form and proper checkbox. These will look something like
this:
Forms!NewFormName.[cbxFirstYesNo]
Where you would substitute the name of your form for NewFormName, and the
name of the first check box (not the field name, but the name of the
checkbox) for cbxFirstYes. These will work like parameters if the form is
not open in form mode, so you can test your query by entering True or False
while the form is in design mode or closed.
If that isn't enough to get you started, repost with a description of what
you have and where you need the help.
--
Daryl S
Steph said:
Hi Daryl, thanks for the response. I love that idea, which will definitely
get me my desired goal (even better). I am pretty comfortable with forms
coding and queries, but do not know how to do what you mentioned. can you get
me started?
Thanks again!
:
Steph -
You could build a form that has the criteria checkboxes on them, and
whatever other criteria you need. Then when someone clicks on the query,
bring up this form, and then run the query based on the values in the form's
checkboxes.
--
Daryl S
:
Hi All, I need a little expert advice here.
I have a query that pulls from just one table. What I would like is once
the query is clicked, have a series of questions, prob 3 or so to drive the
criteria. In the past I have done this for dates but cant figure this one out.
the fields to be queried are all checkboxes. IE: Was the voice Male or
Female?(they are both checkboxes) Was it a child? (a checkbox) Which
Antennae was it heard on? (6 total options, all checkboxes.
thanks so much in advance!!
Steph