Pass Filter To Query With VBA (1 Viewer)

robertbwainwright

Registered User.
Local time
Today, 17:05
Joined
May 2, 2012
Messages
62
I have a subform (this subform's source object can change to one of three diffrent forms) that allows the users to filter. I have a requirement to output the filtered data to excel. I am creating a query based on the subforms record source called qryExport. I now want to pass the subforms filter to qryExport. I have the string setup now I just need to know how to pass the data into the filter property of the query.

Thanks,
Robert
 

robertbwainwright

Registered User.
Local time
Today, 17:05
Joined
May 2, 2012
Messages
62
Can you show the code you have?

jdraw, Thanks for your reply. I might not be explaining myself well. If I open a query it has a filter property. I would like to be able to use (set) that filter property from VBA.
 

Users who are viewing this thread

Top Bottom