Results 1 to 5 of 5
  1. #1
    Crdmster is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    13

    Query Creation - Table Rearrangement


    Hey All! I am wanting to create a query which will reorganize an existing table (please see the attached for reference). To summarize, the objective will be to create a query in which I can quickly sort all the tables to view all dates in order and in one column. I would like to do this without VBA if possible, as to eliminate the need of refreshing before printing a report.

    Pic.pdf

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,466
    Maybe:

    "Select [Project], [Date2] as ProjectDate, "Date2" as Description from Table1
    UNION ALL
    Select [Project], [Date3] as ProjectDate, "Date3" as Description from Table1
    UNION ALL
    Select [Project], [Date4] as ProjectDate, "Date4" as Description from Table1;"

  3. #3
    Crdmster is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    13
    That did it!

    Your a scholar and a champion Bulzie, thanks alot!

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,466
    Glad I could help!!

  5. #5
    Crdmster is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    13
    Can someone help with making a Query in the opposite manner then stated above. From the attached picture "Pic.pdf", i want to create a Query to look like "Existing Table" from a Query which looks like "New Query". It's basically my initial question, except backwards.

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

Similar Threads

  1. Table Creation
    By rclaar in forum Access
    Replies: 2
    Last Post: 03-02-2016, 04:45 PM
  2. How do I get the CREATE TABLE part from a table creation query?
    By Javier Hernández in forum Programming
    Replies: 5
    Last Post: 01-14-2014, 01:56 PM
  3. Replies: 8
    Last Post: 07-18-2013, 01:52 PM
  4. Replies: 35
    Last Post: 06-17-2013, 11:02 AM
  5. Table and form creation
    By Andyjones in forum Forms
    Replies: 2
    Last Post: 12-31-2011, 10:27 AM

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