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

Sort problems in Access

Status
Not open for further replies.

Wizdar

Technical User
Sep 4, 2002
86
US
I have a form that is used to view customer information. There is a sort function in the query that the form is build on that sorts by customer name.

When applying a filter sort, there is no problem. When the database is closed, the filter goes away.

However, if an A-Z sort is applied (e.g. to the address field), this sort remains after the program is closed and the sort in the query doesn’t work any more, although it still appears in the query itself. I can’t seem to find the A-Z sort anywhere.

In order to return the database to the original order, I have to perform an A-Z sort on the customer name.

Access XP Pro on Win XP Pro on a network.
 
try adding code in onopen
DoCmd.GoToControl "customer name"
DoCmd.RunCommand acCmdSortAscending

or onopen add

me.filter = ""
docmd.applyfilter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top