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

Sort automatically on opening a form

Status
Not open for further replies.

OrionElectrotech

Technical User
Jun 19, 2008
27
GB
Can anyone tell me how to set a form up so that it will sort automatically on opening?

It is a simple form, based on a table with just a date field and a text field, and I would like it to sort on the date field. I have set the Order By property on the form, but that obviously doesn't apply automatically on opening (2003 version).

I imagine it is a simple bit of code in the On Open property, but I am a novice still when it comes to VBA!

Thanks

Caroline
 
Code:
It is a simple form, based on a table
Base the form on a query sorted by date.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top