Records not sorting

  • Thread starter Thread starter Bob Richardson
  • Start date Start date
B

Bob Richardson

What would prevent a continuous forms view from not sorting correctly. I've
tried setting up the ORDER BY property of the FORM, but I still see the data
in Primary Key order (an autonumber). I use a filter, which works correctly,
but I still get the data in numeric order, instead of by Lastname,
Firstname. Is there something that can block this sort order, or in some way
force the data to be in Key order?
 
you can base the form on a query, rather than a table, and sort the records
in the query. or you can set the sort order in VBA, by adding the following
code to the form's Load event procedure, as

Me.OrderBy = "Lastname, Firstname"
Me.OrderByOn = True

hth
 
Thanks Van. I set the property to true in the Forms Onactivate event and all
worked. Then I commented that line out (' Forms.OrderByOn = true ) and it
still worked. Strange. Is there another way to access this property. I
didn't see it on the Property list. How would it have gotten set to false?
 

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

Back
Top