orderby subform

cpampas

Registered User.
Local time
Today, 12:14
Joined
Jul 23, 2012
Messages
221
Hello
I set the order of by subform data by clicking on a subform label :

Me.OrderBy = "[data] Asc"
Me.OrderByOn = True

but, I would prefer to do it, from the main form by clicking on a command button. Like this, wich does not work :

Me.OrderBy = "Forms!frmMyMain.frmMySub.Form![data] Asc"
Me.OrderByOn = True



any thoughts about this
thanks
 
Hi. You could try it this way:
Code:
Me.SubformControlName.Form.OrderBy="[data]"
Me.SubformControlName.Form.OrderByOn=True
 
It works great
Thanks a lot
 
Hi. You're welcome. Good luck with your project.
 

Users who are viewing this thread

Back
Top Bottom