Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort Datasheet which is a Sub-Form

Status
Not open for further replies.

jcmv007

Technical User
Nov 1, 2001
88
US
Using Windows XP SP1 and ACCESS SP1.

I would like to sort the records shown in a datasheet form (fsfrDetails) by any column selected by the user.

It sounds easy but here is were it gets complicated (at least form me),
1. It is a subforms in the form called frmUnits
2. In fsfrDetails for the double click event of all the fields shown there is code to open another form.
3. I need to hide the command bars.
4. I would like to sort ascendig or desending.

I have create my own commandbar using command buttons.

 
Just have the user right click on the column they want to sort and choose sort Acending order.
 
Hi,

Or just go to properties and hit the data tab and enter the order by clause there.

Nowell
 
anything special for the ORDER BY Clause in the Data tab of the properites??

I tried HistDate DESC and it doesnt work.
Do i have to do Me.HistDate DESC or something, ive tried a bunch of ways.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top