Sort Date and hour

  • Thread starter Thread starter Peter D
  • Start date Start date
P

Peter D

I have a table and 2 items are date and hour

I made a query to sort them, i sorted on date and hour but only the
date is sorted

So 12/12/06 12:12 came after 12/12/06 18:00 in my query result.

What went wrong????

Tx anyone
 
Hello Peter.

Peter D said:
I have a table and 2 items are date and hour.
I made a query to sort them, i sorted on date and hour but only the
date is sorted.
So 12/12/06 12:12 came after 12/12/06 18:00 in my query result.
What went wrong????

How did you sort????
Did you use the design grid or the properties window? Or both?
Did you sort in ascending or descending order?
Another idea: Maybe the date portions of the hour values differ?
 
Peter D said:
I have a table and 2 items are date and hour

Do you mean that you have two separate Fields, one for data, and the other
for time? If so, you should re-consider and use a single Date/Time Field to
contain both date and time. That's the way Access is intended to work.
I made a query to sort them, i sorted on date
and hour but only the date is sorted

So 12/12/06 12:12 came after 12/12/06 18:00 in my query result.

What went wrong????

Post your query and perhaps someone can offer a useful suggestion.

Larry Linson
Microsoft Access MVP
 

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

Similar Threads

Dlookup 7
How to create a sort order number in a query 2
Time Calculation 1
Date ranges 3
excluding 12:00:00 AM from query results 4
Excel Catagorise AM or PM 7
Date overlap***UP*** 1
Suming fields in queries 4

Back
Top