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!

sorting in a datasheet subform

Status
Not open for further replies.

rene1000

IS-IT--Management
Apr 9, 2002
89
NL
I have created a form which contains a datasheet subform with multiple columns. On the form are two buttons which should sort ascending or descending based on the column selected in the datasheet. Does anyone know how to do this ?

Thanks allready,
Rene
 
Rene, just create two queries, one Acending and one decending. Then in the ONClick event of the command buttons add a DoCmd.Openquery "Query1 or Query2". If that don't work use a macro and use DoCmd.RunMacro. that should take care of it for you.
 
Thats not really what i mean. I do not want to create two separate forms, each bound to another query.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top