Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Sort Week day

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pietro - 12 Jan 2008 15:48 GMT
Hi,
  I have a field "Received" in a query formatted General date,i added
another field to extract the week day using the formula
Day:format([received],"ddd") now i want to sort the field day ascendingly in
a week that starts from Sun,i tried to sort it but actually it's sorted
alphapetically,can aybody help?
Arvin Meyer [MVP] - 12 Jan 2008 15:59 GMT
Use the Weekday() function, which returns the day numbers, as in:

Weekday([Datefield])
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

> Hi,
>   I have a field "Received" in a query formatted General date,i added
[quoted text clipped - 3 lines]
> a week that starts from Sun,i tried to sort it but actually it's sorted
> alphapetically,can aybody help?
Krzysztof Pozorek [MVP] - 12 Jan 2008 16:04 GMT
(...)
>   I have a field "Received" in a query formatted General date,i added
> another field to extract the week day using the formula
> Day:format([received],"ddd") now i want to sort the field day ascendingly
> in
> a week that starts from Sun,i tried to sort it but actually it's sorted
> alphapetically,can aybody help?

Add calculated field
WeekDay([received],1)
and sort by this expression.

K.P. Poland
www.access.vis.pl
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.