Results 1 to 3 of 3
  1. #1
    bilal is offline Novice
    Windows 7 32bit Access 2002
    Join Date
    Oct 2015
    Posts
    2

    Sorting date in a database

    in microsoft access if we create a database of every day of a month and if some dates are missing in data for example if 19th and 20th june is missing in the month of june. How can we sort the missing sequence i.e. we want to know which dates are missing?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    One way would be to create a table of all the possibles days of a month, i.e. 31 records, one for each day.
    Then do an unmatched query between these table and your data, looking for missing days.

    If you really want to get precise, you could make a tables like this for the whole year, if you are matching on a complete date field (and not a day number field).
    This is easier than it sounds. You can create all the dates in Excel pretty easily, but entering the first day of the year, then adding one down for each row until you get to the last day of the year. Then import that data into an Access table.

  3. #3
    bilal is offline Novice
    Windows 7 32bit Access 2002
    Join Date
    Oct 2015
    Posts
    2
    Thanks buddy

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

Similar Threads

  1. Sorting by Date in non-Date Field
    By Chris1112 in forum Forms
    Replies: 11
    Last Post: 05-09-2012, 12:40 PM
  2. Sorting by date
    By kaledev in forum Queries
    Replies: 2
    Last Post: 03-16-2011, 12:32 PM
  3. Date Sorting
    By sfoot0309 in forum Queries
    Replies: 1
    Last Post: 04-25-2010, 09:59 PM
  4. Sorting by date between different groupings
    By wagspk in forum Reports
    Replies: 0
    Last Post: 03-11-2009, 11:53 PM
  5. Sorting By Date!
    By Pirate in forum Access
    Replies: 0
    Last Post: 07-19-2007, 02:42 PM

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