Hi All,
I have a query as follows:
select sum(NumOfLines) as TTLLines
from tblTable
where tblTable.Billing_ID = rptReport.FieldName
This query should look at a hidden control on a report (called rptReport) and use it in the where clause.
Now, when I run the query and provide the Billing_ID manually, it works fine. But when I run the report, it prompts me with a message box with the query name as the text?!?
I know the Billing_ID value is in the control on the form. I can see that. And the query runs fine manually. But not in the report.
Is it NOT possible to reference a control value on a report at run-time?
Thanks,
Mark
I have a query as follows:
select sum(NumOfLines) as TTLLines
from tblTable
where tblTable.Billing_ID = rptReport.FieldName
This query should look at a hidden control on a report (called rptReport) and use it in the where clause.
Now, when I run the query and provide the Billing_ID manually, it works fine. But when I run the report, it prompts me with a message box with the query name as the text?!?
I know the Billing_ID value is in the control on the form. I can see that. And the query runs fine manually. But not in the report.
Is it NOT possible to reference a control value on a report at run-time?
Thanks,
Mark