Question : Query parameters for subform recordsource

I'm setting the recordsource of a datasheet subform. I want to use a predefined parameter query. How do I provide the parameter value to complete the query so the recordsource will run?

Answer : Query parameters for subform recordsource

How are you setting the recordsource? Where are you getting your parameter value? I would probably put a text box on the main form (even if you make it invisible) and have the query's criteria point to that text box. Then all you'd have to do is set the value of that text box in code and do a

me.YourSubformName.Requery

Hope that helps . . .

brewdog
Random Solutions  
 
programming4us programming4us