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

Change Report Sorting Using VB

Status
Not open for further replies.

MarkEmerson83

Technical User
Apr 14, 2002
3
GB
Can anybody tell me how to change the sorting of a report using VB code?

The situation that I would like to use this is;

I have a form with a combo box that I want the user to be able to select how they want the Report sorted. Once the sorting method is chosen the report will then be opened.

Any quick help will be greatly aprieciated.
 
You can sort the data in the report_open event procedure. for example,

***
me.orderbyon=True
me.orderby="Lastname, Firstname"
***


seaport
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top