J
J.Curtis
Is there a way to sort data by days of the week. For example Monday, Tues,
Wed, Thur, Fri and not alphabetically?
Wed, Thur, Fri and not alphabetically?
Jerry Whittle said:Sure:
DoW: DatePart("w",[YourDateField])
1 is Sunday. If you want Monday to be first:
DoW: DatePart("w",[YourDateField],2)
Put something like above in a query and sort on it.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
J.Curtis said:Is there a way to sort data by days of the week. For example Monday, Tues,
Wed, Thur, Fri and not alphabetically?
Jerry. I am a beginner and taking on-line classes via microsoft to figure out
this program, so could you give me a few more details as to how to do this?
Maybe simplify for dumbie?
Thanks!
Jerry Whittle said:Sure:
DoW: DatePart("w",[YourDateField])
1 is Sunday. If you want Monday to be first:
DoW: DatePart("w",[YourDateField],2)
Put something like above in a query and sort on it.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
J.Curtis said:Is there a way to sort data by days of the week. For example Monday, Tues,
Wed, Thur, Fri and not alphabetically?