Hi all,
My problem is that the report needs to process the variables in the Open event and make the RecordSource. If I use something.recordsource in the module, I couldn't choose which field to display in the Report Design View. So I would put that query directly in the RecordSource property directly.
tID is a table field
vID is a variable defined in the Open Event of a Report.
The below things were tried but they all don't work:
Select * from tableA where PID = me.vID
Select * from tableA where PID = reportName.FunctionName.vID
Select * from tableA where PID = Forms!ReportName.vID
So how could I make that work?
Thanks in advance.
My problem is that the report needs to process the variables in the Open event and make the RecordSource. If I use something.recordsource in the module, I couldn't choose which field to display in the Report Design View. So I would put that query directly in the RecordSource property directly.
tID is a table field
vID is a variable defined in the Open Event of a Report.
The below things were tried but they all don't work:
Select * from tableA where PID = me.vID
Select * from tableA where PID = reportName.FunctionName.vID
Select * from tableA where PID = Forms!ReportName.vID
So how could I make that work?
Thanks in advance.