G
Guest
I have a report that is selected to run from a switchboard. A form pops up
to enter criteria to select an event and then a start and end date. The form
is based off a parameter query. Here's the SQL I currently have:
SELECT tblDetails.EventCategory, tblData.LoadDate, tblDetails.DetailsTime,
tblDetails.Description, tblDetails.LoadDateID
FROM tblData INNER JOIN tblDetails ON tblData.LoadDateID =
tblDetails.LoadDateID
WHERE (((tblDetails.EventCategory) Like
[Forms]![frmFilterEventCategory]![cboEvent] & "*") AND ((tblData.LoadDate)
Between [Forms]![frmFilterEventCategory]![txtBeginDate] And
[Forms]![frmFilterEventCategory]![txtEndDate]));
With the current date criteria in the query, the form opens to a blank
screen. If I take the date criteria out and just leave the event criteria,
it opens fine and I can enter all the proper data although, of course, the
dates won't query properly. I also have the same date criteria entered in
the report header so it will print the proper date span on the report. That
seems to work OK. I've tried deleting the event criteria from the query to
see if that changes anything, and I tried deleting the criteria from the
report header, but i still get a blank screen whenever there's data in the
date criteria of the query.
Is there something in my query that I'm doing wrong?
TIA,
Patti
to enter criteria to select an event and then a start and end date. The form
is based off a parameter query. Here's the SQL I currently have:
SELECT tblDetails.EventCategory, tblData.LoadDate, tblDetails.DetailsTime,
tblDetails.Description, tblDetails.LoadDateID
FROM tblData INNER JOIN tblDetails ON tblData.LoadDateID =
tblDetails.LoadDateID
WHERE (((tblDetails.EventCategory) Like
[Forms]![frmFilterEventCategory]![cboEvent] & "*") AND ((tblData.LoadDate)
Between [Forms]![frmFilterEventCategory]![txtBeginDate] And
[Forms]![frmFilterEventCategory]![txtEndDate]));
With the current date criteria in the query, the form opens to a blank
screen. If I take the date criteria out and just leave the event criteria,
it opens fine and I can enter all the proper data although, of course, the
dates won't query properly. I also have the same date criteria entered in
the report header so it will print the proper date span on the report. That
seems to work OK. I've tried deleting the event criteria from the query to
see if that changes anything, and I tried deleting the criteria from the
report header, but i still get a blank screen whenever there's data in the
date criteria of the query.
Is there something in my query that I'm doing wrong?
TIA,
Patti