Results 1 to 2 of 2
  1. #1
    Buddus is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    5

    List Dates between Start and Finish Dates

    I have a simple table [Class List] with headings: Class Number Class Start Class Finish

    Click image for larger version. 

Name:	1.JPG 
Views:	13 
Size:	13.3 KB 
ID:	13227






    I need a query that lists every date between Class Start and Class Finish for all classes. I don’t want to have to do a yearly table if possible.
    I have Access2010. The table has about 25 entries and i know the query will be huge but thats what I need.

    Appreciate any help!!

    Danny

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If you want it in a query, I think you will need to create a yearly calendar table to compare to. Select queries can only return or summarize records that are already there, they really can't create new records that don't exist (a Make Table or Append Query can, but then you are creating records which may not be too efficient).
    The only other way to get a listing of dates that I can think off would be to use VBA, but I think that would have to write the results to a file or a new table.

    Creating a table of dates is pretty easy. I would just create it in Excel and import it into an Access table. You could do multiple years at a time (i.e. create 10 years of dates at once).

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

Similar Threads

  1. List dates between 2 dates?
    By alicias4 in forum Access
    Replies: 2
    Last Post: 01-02-2013, 12:11 PM
  2. Replies: 1
    Last Post: 12-07-2012, 10:02 AM
  3. Replies: 3
    Last Post: 04-11-2012, 01:13 PM
  4. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  5. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM

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