Results 1 to 4 of 4
  1. #1
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45

    Unhappy How to sort Day of week from Monday to Saturday

    Hi guys
    does anyone knows how to sort days of week from Monday to saturday.
    im currently doing database of school timetable. im trying to display timetable report using Query by entering department ID then it will display school timetable from monday to saturday. But the problem is the report wont sort properly. it shows Monday Saturday Thursday.. which it wont sort properly.

    any clues?
    im trying to follow from this using expression on query but still fail to solve it.. can anyone teach me steps to do it?
    Reference link : http://www.ehow.com/how_2125018_use-...cess-2007.html
    Thanks..


    Attachment 11220

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Add a field to your query. Type this expression in it

    DayOfWeek: Weekday([Day])

    This should return the numerical value of the day of the week. Use this field to sort your data. You can hide the field by unchecking the check box if it does not need to be seen.

    BTW: Day is a reserved term in Access and should not be used as a field name. This is also true for the term Time.

    Here is a listing of reserved terms.

    http://office.microsoft.com/en-us/ac...010030643.aspx

  3. #3
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45
    Quote Originally Posted by alansidman View Post
    Add a field to your query. Type this expression in it

    DayOfWeek: Weekday([Day])

    This should return the numerical value of the day of the week. Use this field to sort your data. You can hide the field by unchecking the check box if it does not need to be seen.

    BTW: Day is a reserved term in Access and should not be used as a field name. This is also true for the term Time.

    Here is a listing of reserved terms.

    http://office.microsoft.com/en-us/ac...010030643.aspx

    i try to type on query but it give me some error?? any ideas? did i do wrong expression command?
    sorry im still quite new on Access.. currently im using Access 2007.
    Attachment 11223

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    You need to put it in a new column (field) not in the criteria.

    Look at this tutorial on how to do that

    http://office.microsoft.com/en-us/ac...005188023.aspx

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Start a report on week 40 of a week count
    By aspitalnick in forum Reports
    Replies: 8
    Last Post: 11-28-2012, 04:53 PM
  2. Find the Nearest Previous Saturday
    By RachelBedi in forum Access
    Replies: 1
    Last Post: 09-21-2012, 12:51 PM
  3. Count Sunday & Saturday between two days.
    By kashif.special2005 in forum Queries
    Replies: 2
    Last Post: 02-23-2012, 06:19 PM
  4. Replies: 2
    Last Post: 02-07-2012, 05:39 PM
  5. Replies: 1
    Last Post: 07-27-2010, 09:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums