Control Source as a Variable?

jm112

Registered User.
Local time
Today, 14:36
Joined
Nov 5, 2010
Messages
14
Is there a way to declare a control source as a variable?

I have a report filter like this:

DoCmd.OpenReport "report", acViewReport, , [site1] = "open"

I want [site1] , which is a control source, to change to [site2], [site3], [site4], depending on a value chosen in a combo box.

Thanks!
 
Create your WhereCondition argument as a string and point to the string in the OpenReport command.
 

Users who are viewing this thread

Back
Top Bottom