Sort records in query when form is opened

G

Guest

I have a form that is linked to a query. It is possible to sort on a certain
field in the query when the form is opened?
Ex: I have a field called Account Name, when the form is opened can it sort
on that field so you can scroll through the records in order?

Thanks
 
D

Douglas J. Steele

Create a query that returns the rows in the correct order, and base the form
on the query, rather than the table.
 
J

John Vinson

I have a form that is linked to a query. It is possible to sort on a certain
field in the query when the form is opened?
Ex: I have a field called Account Name, when the form is opened can it sort
on that field so you can scroll through the records in order?

Thanks

Ummmm...

Sure. Open the query in design view. Select "Ascending" on the Account
Name field. Save the query.

Am I missing something?

John W. Vinson[MVP]
 
B

Bill Mosca, MS Access MVP

Patricia

Forms have an OrderBy property. Put the name of the field on that line in
the Properties box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top