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 column automatically in Datasheet view

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
US
I have a crosstab query of which I cannot sort a Totals column by descending order. Is there any way to sort a certain column automatically after the query runs and is in Datasheet view?
 
Yes. You can use OrderBy:

Code:
Private Sub Form_Load()
OrderBy = "[Total Of Field Name]"
OrderByOn = True
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top