Results 1 to 3 of 3
  1. #1
    Bella's Mom is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    1

    Rotate Report 90 Degrees

    I keep a database for a local cemetery association. I'm trying to create a report that will visually look like the cemetery lots/plots. For Example, Section A, Lot 1 has 8 Plots. A-1-A, A-1-B, A-1-C, A-1-D, A-1-E, A-1-F, A-1-G, and A-1-H. Currently, my report lists the data from top to bottom. A-1-A at the top with the corresponding data listed horizontally. A-1-B listed underneath, with the corresponding data listed horizontally.



    I want A-1-A with all it's data listed underneath it. Then a 2nd column to the right with A-1-B , with all it's data underneath. So A-B-C-D-E-F-G-H left to right across the top. Then NAME, then DOB, then DOD, etc. listed underneath.

    That way when someone is standing south of the headstone, the data will read left to right as you're looking at the plots.

    If I could rotate my entire report 90 degrees, I could rotate my text and make it work.

    Is it possible? Am I missing something simple?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    No, this will not be simple. You want to 'transpose' the data (essentially de-normalizing) - Excel can do this easily with copy/paste Transpose option.

    In Access this is commonly accomplished with a CROSSTAB query or (prior to Access 2013) a pivot table - but in your case a single CROSSTAB won't get it done. I think will need a CROSSTAB for each field (name, DOB, DOD, etc) then a UNION query to merge them. Like:

    query DeceasedName
    TRANSFORM First(Table1.DeceasedName) AS FirstOfName SELECT Table1.Section, Table1.Lot, "DeceasedName" AS DataType FROM Table1 GROUP BY Table1.Section, Table1.Lot, "DeceasedName" PIVOT Table1.[Plot];

    query DOB
    TRANSFORM First(Table1.DOB) AS FirstOfDOB SELECT Table1.Section, Table1.Lot, "DOB" AS DataType FROM Table1 GROUP BY Table1.Section, Table1.Lot, "DOB" PIVOT Table1.[Plot];

    query DOD
    TRANSFORM First(Table1.DOD) AS FirstOfDOD SELECT Table1.Section, Table1.Lot, "DOD" AS DataType FROM Table1 GROUP BY Table1.Section, Table1.Lot, "DOD" PIVOT Table1.[Plot];

    SELECT Section, Lot, DataType, A, B, C, D, E, F, G, H FROM DeceasedName
    UN ION SELECT Section, Lot, DataType, A, B, C, D, E, F, G, H FROM DOB
    UN ION SELECT Section, Lot, DataType, A, B, C, D, E, F, G, H FROM DOD;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    IrogSinta is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    103
    What is the maximum number of plots you'd have in each section? Fitting 8 columns is fine but would you have a section that needs 20 columns?

    Ron

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

Similar Threads

  1. Set Employee On Call Order and Rotate
    By burrina in forum Access
    Replies: 2
    Last Post: 10-23-2012, 10:14 AM
  2. How to rotate a label on an Access form.
    By dougie in forum Queries
    Replies: 2
    Last Post: 07-03-2012, 11:45 PM
  3. Replies: 4
    Last Post: 05-17-2012, 03:02 PM
  4. Rotate a Picture
    By ksmith in forum Access
    Replies: 4
    Last Post: 08-16-2010, 01:55 PM
  5. Rotate picture? or break report or what?
    By cowboy in forum Reports
    Replies: 2
    Last Post: 02-22-2010, 12:08 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