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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I setSortOrder for 2 fields on my Access form?

Status
Not open for further replies.

CHPD

IS-IT--Management
Jul 23, 2004
5
0
0
US
How do I use SetSortOrder for 2 fields? I need to sort Last Names first, they sort by First Names.
 
yourOfficeDataSourceObject.SetSortOrder "Last Names", True, "First Names", True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PH,
Where in the code would I put that in?
 
Just after the yourOfficeDataSourceObject.Open call.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top