Hi everybody,
[Access 2003]
I've created custom parameter dialog boxes before that will call a report, which calls the underlying query, and passes the parameters accordingly, but I'm having trouble with one that I'm currently working on because it's slightly different than the others.
Here are the query definitions:
I'm created my report, rptDataAnalystP roductivity, with qryAuditorsTota lReview as the record source, and I've created my unbound form, frmReportDataAn alystProductivi ty. The form has 3 fields: BeginningDate (textbox), EndingDate (textbox), and Campus (combo box with 2 values from control source 'qryCampus'). I've set up parameter criteria in qryAuditorRevie w (the 1st query) for each of the 3 fields on the form so that the query can retrieve the values and the report will run according to those parameters.
Basically, my report is dependent on qryAuditorsTota lReview, and qryAuditorsTota lReview is dependent on qryAuditorsRevi ew to get the parameters from the form. The issue I'm running into is that the report will return no data if I run it using the form. I can run both queries and return data, and can run the report by itself and return data, but the form says that no data is returned.
I played around with the queries and found that if I remove Campus from both of the queries, that the form will run successfully. However, if I remove Campus from only one query (doesn't matter which one), the form won't run. It's like the form is passing the Campus parameter, which sucks because I really need Campus to work in order to filter the data properly.
Anyone have any ideas what I'm doing wrong?
[Access 2003]
I've created custom parameter dialog boxes before that will call a report, which calls the underlying query, and passes the parameters accordingly, but I'm having trouble with one that I'm currently working on because it's slightly different than the others.
Here are the query definitions:
Code:
Query 1 - qryAuditorsReview (This query is used to compile data) Field: AuditorFullName Field: Campus Field: PatientMPI Field: DischargeDate Field: DatePIAReceived Field: DateAudited Expression: NotAuditedTimely (This expression returns a 1 or 0 for timeliness, and is based on the DischargeDate, DatePIAReceived, and DateAudited fields)
Code:
Query 2 - qryAuditorsTotalReview (This query is used to summarize the data in qryAuditorsReview) Field: AuditorFullName Field: Campus Field: TotalCharts (Count of PatientMPI) Field: NotAuditedTimely (Sum of NotAuditedTimely)
Basically, my report is dependent on qryAuditorsTota lReview, and qryAuditorsTota lReview is dependent on qryAuditorsRevi ew to get the parameters from the form. The issue I'm running into is that the report will return no data if I run it using the form. I can run both queries and return data, and can run the report by itself and return data, but the form says that no data is returned.
I played around with the queries and found that if I remove Campus from both of the queries, that the form will run successfully. However, if I remove Campus from only one query (doesn't matter which one), the form won't run. It's like the form is passing the Campus parameter, which sucks because I really need Campus to work in order to filter the data properly.
Anyone have any ideas what I'm doing wrong?
Comment