G
Guest
I know it is possible to filter the reports by sending in a criteria to the
OpenReport command.
But in this case I have a complex "piled" query: Query3 built on Query2
built on Query1, and I need to set the criteria on Query1!
Usually I solve this by pointing to a control expression in the Query:
Forms!frmThis!ctrlThat
This time it is more complicated: The piled query is used in many other
places as well, where I need to manipulate the resulting recordset. Neither
the DAO nor the ADO recordsets will evaluate the control expression even if
the required form is open. I solved this by specifying the criteria as a
typed parameter and adding it to the ADO command. This works fine. The
recordset is OK.
Now the problem is how to add the parameter value to the query when opening
the report .... Any ideas?
OpenReport command.
But in this case I have a complex "piled" query: Query3 built on Query2
built on Query1, and I need to set the criteria on Query1!
Usually I solve this by pointing to a control expression in the Query:
Forms!frmThis!ctrlThat
This time it is more complicated: The piled query is used in many other
places as well, where I need to manipulate the resulting recordset. Neither
the DAO nor the ADO recordsets will evaluate the control expression even if
the required form is open. I solved this by specifying the criteria as a
typed parameter and adding it to the ADO command. This works fine. The
recordset is OK.
Now the problem is how to add the parameter value to the query when opening
the report .... Any ideas?