undo sorts button

W

wallymeister

I have a form with a subform that is displayed in datasheet view. When I
right click to sort on a column I get A-Z and Z-A options but there is no
clear all sorts option so I would like to add a button to clear all sorts.
The button is in the detail section beside the subform. The subform name is
called [subEditParts].

Can someone help with this, Thanks
Wally
 
T

Tom van Stiphout

On Tue, 11 May 2010 07:00:01 -0700, wallymeister

Me.subEditParts.Form.OrderBy = ""
Me.subEditParts.Form.OrderByOn = False

-Tom.
Microsoft Access MVP
 
W

wallymeister

Thanks Tom
This was way too simple, once again I'm ashamed of myself.
Wally

Tom van Stiphout said:
On Tue, 11 May 2010 07:00:01 -0700, wallymeister

Me.subEditParts.Form.OrderBy = ""
Me.subEditParts.Form.OrderByOn = False

-Tom.
Microsoft Access MVP

I have a form with a subform that is displayed in datasheet view. When I
right click to sort on a column I get A-Z and Z-A options but there is no
clear all sorts option so I would like to add a button to clear all sorts.
The button is in the detail section beside the subform. The subform name is
called [subEditParts].

Can someone help with this, Thanks
Wally
.
 

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