changing record source on subform

poet1234

Registered User.
Local time
Yesterday, 23:18
Joined
Oct 7, 2004
Messages
46
Hello, I have a form with a subform. I want to change the record source on the subform during an OnClick event. I am not sure what I'm doing wrong, but I get a "object does not support this method" error. Can anyone help? Thanks in advance.
 
Just a syntax problem, try addressing the subform like..
Me!SubFormName.Form.Recordsource = "Your SQL String"
 

Users who are viewing this thread

Back
Top Bottom