I have a query set up in Access without any criteria or parameters set.
In VBA, I can use DoCmd.OpenQuery to run it. However it doesn't have the parameter to run it with where condition. Whereas DoCmd.OpenReport you can
Is there any way to run the query in VBA with where condition? Or is there anyway to get around it without changing the original query?
In VBA, I can use DoCmd.OpenQuery to run it. However it doesn't have the parameter to run it with where condition. Whereas DoCmd.OpenReport you can
Is there any way to run the query in VBA with where condition? Or is there anyway to get around it without changing the original query?