How to sort a Format ([DateAudited],"yyyy"", week ""ww) field by w

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

Guest

I need to convert the date using the format in the header, however when I try
to sort the date using the ascending or descending option, it behaves like a
string. Week 11 comes before week 2? Is there a way to sort the formatted
date (converted to week number) in the correct order?

Thanks a lot
 
GillesABelanger said:
I need to convert the date using the format in the header, however when I try
to sort the date using the ascending or descending option, it behaves like a
string. Week 11 comes before week 2? Is there a way to sort the formatted
date (converted to week number) in the correct order?

Include both a formatted date (string) and an unformatted date and sort on the
unformatted one.
 
Thank you for your prompt answer.This is a query of queries. The first two
queries are totals (crosstabs) queries. I have tried what you are
suggesting, but then I need to select "First" as the total option to order my
data by week. This works for the first level of queries, however, when I do
the query of the two queries, it acts as a filter and I see no more data!
Any other suggestions?

Thanks
 
Applying that principle (using the date to sort with First as the option in
the total line) to both queries is working just fine. Thansk a lot.
 

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

Sort Week day 2
Sorting by week 1
Get date for start of week 3
Week numbers 2
Week number 1
Report sorting function 2
First Day of the week 1
Sorting by Week and Year 3

Back
Top