input fields:
DATE 12/25/2004
APPT 12:05 pm
ARVL 12:10 pm
APPTARVL is a calculation of the difference in minutes:
ApptArvl: DateDiff("n",[APPT],[ARVL])
The query will be used for reporting purposes...
When the query is opened, the user is asked for a date range:
Between [START DATE] And [END DATE]
It also asks for a data range relating to the ApptArvl.
Between [START RANGE] And [END RANGE]
Scenario:
The user enters 03/29 for the begin date and 03/30 for the end date.
The user then enters -60 for the begin range and 17 for the end range. (The user wants to produce a report showing all appointments arriving -60minutes < x < 17minutes).
My problem is that the report pulls up the correct date but also includes all appointments. It seems to ignore the second criteria. What am I doing wrong???
Scott![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
DATE 12/25/2004
APPT 12:05 pm
ARVL 12:10 pm
APPTARVL is a calculation of the difference in minutes:
ApptArvl: DateDiff("n",[APPT],[ARVL])
The query will be used for reporting purposes...
When the query is opened, the user is asked for a date range:
Between [START DATE] And [END DATE]
It also asks for a data range relating to the ApptArvl.
Between [START RANGE] And [END RANGE]
Scenario:
The user enters 03/29 for the begin date and 03/30 for the end date.
The user then enters -60 for the begin range and 17 for the end range. (The user wants to produce a report showing all appointments arriving -60minutes < x < 17minutes).
My problem is that the report pulls up the correct date but also includes all appointments. It seems to ignore the second criteria. What am I doing wrong???
Scott