G Guest Jan 22, 2005 #1 I need to call a sub routine on a subform from a main form. How would I code that? Thanks!
D Dirk Goldgar Jan 22, 2005 #2 smk23 said: I need to call a sub routine on a subform from a main form. How would I code that? Thanks! Click to expand... The procedure on the subform must be defined as Public. If it is, you can use syntax like this to call it: Call Me!SubformControlName.Form.YourSubName or just Me!SubformControlName.Form.YourSubName That's assuming that the procedure doesn't require any parameters.
smk23 said: I need to call a sub routine on a subform from a main form. How would I code that? Thanks! Click to expand... The procedure on the subform must be defined as Public. If it is, you can use syntax like this to call it: Call Me!SubformControlName.Form.YourSubName or just Me!SubformControlName.Form.YourSubName That's assuming that the procedure doesn't require any parameters.