Sorting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Access database I created. They key fields of a particular sort
are the "employee number" and the "Hours Worked YTD Total." I have created a
query that sorts in ascending order based on the "Hours Worked YTD Total"
field. This query works but on a periodic basis all entries of hours worked
must be set to zero and the employee sort order must remain in the same order
prior to zeroing the hours.
 
The only way to do that would be to retain the data. Perhaps instead of
deleting the data you could move it into another field and use that
field for your sort until you were ready to use the hours worked field
again.

Records in TABLES do not have any intrinsic order. If you want a
specific order use a query (or a report) and set the desired order
there. That is the only way to reliably have the records in any
specific order.


'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
 
Thanks for the help.

John Spencer said:
The only way to do that would be to retain the data. Perhaps instead of
deleting the data you could move it into another field and use that
field for your sort until you were ready to use the hours worked field
again.

Records in TABLES do not have any intrinsic order. If you want a
specific order use a query (or a report) and set the desired order
there. That is the only way to reliably have the records in any
specific order.


'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
 

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