Hello. I need to sort data displayed on a sub-form by running code from a command button on the main form. I tried forms("frmMain.form.frmSubForm".OrderBy = fieldname and every permutation that I could think of. Any wisdom out there? Thanks.
So figure out what the name of the subform *control* on the main form is, then use that name to access the subform itself. The name of the subform itself is in this case irrelevant.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.