Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query - Days of week

Status
Not open for further replies.

bjohran

IS-IT--Management
Oct 24, 2001
3
US
Do you know how to sort in a query the days in the week (Mon-Sat), so that the query will sort Mon,Tues,Wed,Thur,Etc instead of sorting ascending order. I don't know if you set this up in the actual table or what. Right know the table name of (day) is a text field.
 
Two thoughts occur to me. First, you could use the 'Weekday Function' (see access help) if a sort of Sunday (=1) to Saturday (=7) is OK. This won't help if you want to start sort on Monday (=2). Second, you could create a separate table with two fields 'WeekdayName' and 'SortOrder' and assign Monday a 1, Tuesday a 2, etc. and then use this value in your query. Hope this gives you some ideas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top