Results 1 to 3 of 3
  1. #1
    barkarlo is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2006
    Location
    croatia
    Posts
    10

    Write code to see all date between two date

    How to write code that would display a crosstab query all the days between the start date and end date of the bus tours.
    -field row heading should be the name field tours
    - In the field of the column should be shown all the days between the start date and end date tours,
    - In the field of value shown to the cities that the bus goes around from the beginning to the end of the tours from the table "itinerary."
    Table "itinerary" has a column
    tours and column name 1.day, 2.day, 3.day, 4day, 5.day, 6.Day, etc to 15.day.
    For example:
    Name tours: "Eurasia 1.day Berlin, Dresden 2.day, 3.day Ljubljana, Zagreb 4.day,
    etc to the end of tours.
    In the second table stores information about the start date and end date tour, the driver, the tour guide, the city where the tour begins and the city where the tour ends, etc.
    How in this table I was either daily movement than just the beginning and end of tour


    I need to make an inquiry in which he could see all the dates between the start date and end date of the tours so that each city join date.
    For example: name tours, 12.3. Berlin, 13.3.Dresden, 14.3. Ljubljana, etc until the end of tours.
    The attached is the table
    Attached Files Attached Files

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Here is a simple query that may suit your needs.

    Maybe this is what you are after! I only included the query, so copy it to your db. Hope this helps!
    Attached Files Attached Files

  3. #3
    barkarlo is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2006
    Location
    croatia
    Posts
    10

    See two Query columns in one column

    Quote Originally Posted by burrina View Post
    Maybe this is what you are after! I only included the query, so copy it to your db. Hope this helps!
    This query calculates the number of days between two dates, but I do not need to.
    I made a request that I send enclosed, with columns Date1, 1.Day, date2 2.Day, Date3, 3.Day, etc.
    Now in order to query, column "Date1" and column "1.Day" I wanted to see in one column, as shown in the excel file.
    Is this possible?
    Attached Thumbnails Attached Thumbnails query.jpg   Excel example what i want in query.jpg  

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

Similar Threads

  1. VBA Code to selete todays date
    By tweety in forum Access
    Replies: 13
    Last Post: 01-23-2013, 06:58 AM
  2. Replies: 3
    Last Post: 08-21-2012, 03:05 PM
  3. How To Parse and Re Write A Date Field
    By abrogard in forum Access
    Replies: 2
    Last Post: 07-08-2012, 07:19 PM
  4. Date/Time code
    By JayX in forum Access
    Replies: 13
    Last Post: 12-15-2011, 03:31 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