Hello all,
I need to pass a Serverfilter paramater when opening a report. Can anyone tell me how to do this? I am not looking to apply a "filter"... I need to use the "serverfilter" property. This is an Access project with SQL Server backend.
When I open my report in design mode and set the server filter with "Building = 'DN'", things work great, so how do I pass that?
From a form, I am opening this report. The user wants to select one building. I know how to set the serverfilter property on a form, but how do you do this with a report?
With the form, I'd use this....
Forms!frmMainMenu.ServerFilter = "Building = 'DN'"
but not sure how to use the DoCmd.OpenReport and pass that setting.
Thanks in advance!
I need to pass a Serverfilter paramater when opening a report. Can anyone tell me how to do this? I am not looking to apply a "filter"... I need to use the "serverfilter" property. This is an Access project with SQL Server backend.
When I open my report in design mode and set the server filter with "Building = 'DN'", things work great, so how do I pass that?
From a form, I am opening this report. The user wants to select one building. I know how to set the serverfilter property on a form, but how do you do this with a report?
With the form, I'd use this....
Forms!frmMainMenu.ServerFilter = "Building = 'DN'"
but not sure how to use the DoCmd.OpenReport and pass that setting.
Thanks in advance!