Sorting by Date()+Time() field

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

Guest

I have a subform controlled by a simple Query. The order of the records on
the subform are sorted by Date in acsending order using the Query.Can anyone
tell me why occasionally the sort order is incorrect ie. Dates in the wrong
order. I use XP home and Access 2003.
Thanks
 
Is it a Date field, or date being stored in a Text field?

How are you sorting: through a query with the appropriate ORDER BY clause,
or by using the OrderBy property of the form?
 
In the underlying table the date is in a date field. The data is sorted using
the sort field in the query in which acsending is selected
 
Is the "sort field" in the Query simply the Table Field or a Calculated
"Field"?

If it is, its result may be of Text data type and the sorting will be done
based on Text values and not Date value.

Post the expression you used for the Calculated "Field" in this case.
 
the "sort field" is a table field and not a calculated field
--
Don


Van T. Dinh said:
Is the "sort field" in the Query simply the Table Field or a Calculated
"Field"?

If it is, its result may be of Text data type and the sorting will be done
based on Text values and not Date value.

Post the expression you used for the Calculated "Field" in this case.
 

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