sorting a subform

G

Gary

I have a form already open that also has a subform open.
Using VB how can I sort the subform data. I need to be
able to click a command button and make this happen.

I have Access 2002 running on XP Pro

Thank you.

Gary.
 
B

Bruce M. Thompson

I have a form already open that also has a subform open.
Using VB how can I sort the subform data. I need to be
able to click a command button and make this happen.

'***EXAMPLE START
With Me.SubformControlName.Form
.OrderBy = "[FieldName]"
.OrderByOn = True
End With
'***EXAMPLE END

:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top