N
NewSysAdmin
Hello,
I have a problem with my report that is driving me crazy! I am using a form
to pass values to the query and then report. The form has start and end date
fields and combo boxes for fields 'QC Project Leader, CustomerName, and
Model' which are linked to separate tables. I want to enable the user to be
able to either run it for specific QC Project Leader/Customer/Model or for
all records.
The query works fine when typing in the QC Project Leader/Customer/Model.
When I try to run the report, the only field that works is Customer. If the
user enters a specific QC Project Leader or Model, it gives error for no
data. What could be causing this problem? Thank you for any assistance you
can provide.
Here is part of my SQL code from the query:
WHERE ((([RMA/TR Tracking table].[Date of Call]) Between
[Forms]![RMARespTmFm]![StartDate] And [Forms]![RMARespTmFm]![EndDate]) AND
(([RMA/TR Tracking table].[QC Project Leader]) Like
[Forms]![RMARespTmFm]![QCPL] & "*") AND (([RMA/TR Tracking
table].Status)="Closed" Or ([RMA/TR Tracking table].Status)="Submitted") AND
(([RMA/TR Tracking table].[Complaint Category])="RMA") AND (([RMA/TR Tracking
table].CustomerName) Like [Forms]![RMARespTmFm]![Customer] & "*") AND
(([RMA/TR Tracking table].Model) Like [Forms]![RMARespTmFm]![Model] & "*"));
I have a problem with my report that is driving me crazy! I am using a form
to pass values to the query and then report. The form has start and end date
fields and combo boxes for fields 'QC Project Leader, CustomerName, and
Model' which are linked to separate tables. I want to enable the user to be
able to either run it for specific QC Project Leader/Customer/Model or for
all records.
The query works fine when typing in the QC Project Leader/Customer/Model.
When I try to run the report, the only field that works is Customer. If the
user enters a specific QC Project Leader or Model, it gives error for no
data. What could be causing this problem? Thank you for any assistance you
can provide.
Here is part of my SQL code from the query:
WHERE ((([RMA/TR Tracking table].[Date of Call]) Between
[Forms]![RMARespTmFm]![StartDate] And [Forms]![RMARespTmFm]![EndDate]) AND
(([RMA/TR Tracking table].[QC Project Leader]) Like
[Forms]![RMARespTmFm]![QCPL] & "*") AND (([RMA/TR Tracking
table].Status)="Closed" Or ([RMA/TR Tracking table].Status)="Submitted") AND
(([RMA/TR Tracking table].[Complaint Category])="RMA") AND (([RMA/TR Tracking
table].CustomerName) Like [Forms]![RMARespTmFm]![Customer] & "*") AND
(([RMA/TR Tracking table].Model) Like [Forms]![RMARespTmFm]![Model] & "*"));