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!

Sorting a table in Access Using VBA

Status
Not open for further replies.

russeldraper

Technical User
Jul 9, 2003
10
0
0
US
Hello,

If I have a table called 'Mort' and a column in that table called 'Age', I was wondering if there was a way I could sort the table Mort (in ascending order, ie 0..100) in VBA by the column Age. And what the code for that sort would be.

Thanks for the help
 
What are you trying to sort the table for? Do you want to view the table in a sorted order? Print the table in a sorted order?

If you want to view the table in a sorted order, you could build a query based on the table that includes the sort criteria, then open the query (or open a form based on the query).

If you are trying to print a report that is sorted, simply add the OrderBy clause to the report.


[shadeshappy] Cruising the Information Superhighway
[sub] (your mileage may vary)[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top