I'm trying to do the above in VBA code. I have a report that has the RecordSource property set to a certain query name, however on occasions I want this report to run and base it's results on other queries.
I've used the [Filter] part of the "Docmd.OpenReport" method to do this but it doesn't seem to be working properly. I've also looked at using RecordSource property in code before using the "Docmd.OpenReport" line, but it won't let me do this because the report is not open.
Does anyone know what the best way of doing this is?
Thanks
Graham
I've used the [Filter] part of the "Docmd.OpenReport" method to do this but it doesn't seem to be working properly. I've also looked at using RecordSource property in code before using the "Docmd.OpenReport" line, but it won't let me do this because the report is not open.
Does anyone know what the best way of doing this is?
Thanks
Graham