Results 1 to 8 of 8
  1. #1
    cjbuechler is offline Novice
    Windows Vista Access 2000
    Join Date
    May 2009
    Posts
    25

    Multiple lines per record: Report?

    I'm not sure if this is a report issue or if I can get away with it in a query so please bare with me.



    I have a user who takes my export from an access query and in excel adds a new line under each record and cuts and pastes some of the fields from the first line into cells on that second line. A lot of manual work. NORMALLY I would make an access report and try to recreate the formatting they used and export that report to excel for them....but I'm using Access 2007 and I no longer have the export to excel option in reports.

    I.E...
    My export---
    Rep Date GL2 Account Fee
    Rep Date GL2 Account Fee
    Rep Date GL2 Account Fee

    What she wants to see in excel---
    Rep GL2 Fee
    Date Account
    Rep GL2 Fee
    Date Account
    Rep GL2 Fee
    Date Account
    So, am I totally going about this the wrong way and am I able to do it in a query instead? Is this something that is just going to have to be done in excel anyway and if so is there a faster way than having my user manually add those lines and move the cells?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I believe if you apply Office 2007 SP2 it includes the export to Excel feature again.

  3. #3
    cjbuechler is offline Novice
    Windows Vista Access 2000
    Join Date
    May 2009
    Posts
    25
    Woops, I recall reading a thread about that problem and how the SP fixed it awhile back...totally forgot

    Thanks, I can now export to excel but it takes all of my cells and drops them on the same row rather than keeping them stacked on top of each other (2 rows per record with some fields on one and some on another).

    Any way to work around that?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What kind of fields are you exporting? What code are you using to accomplish the task?

  5. #5
    cjbuechler is offline Novice
    Windows Vista Access 2000
    Join Date
    May 2009
    Posts
    25
    Plain text fields. I'm hoping to get something like my scenario at the top of the thread. End result would be an excel document where each record has two rows to itself.

    I can make a macro to add the extra rows after each record in excel but I'm hung up on moving the fields around to the new row so...

    I was hoping I could do that easier in access since thats where the data is coming from anyway.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'll be honest and say that I have no idea how you would create what you want to export.

  7. #7
    cjbuechler is offline Novice
    Windows Vista Access 2000
    Join Date
    May 2009
    Posts
    25
    Well if you don't know then I'm sure it can't be done. I trust your knowledge on this so I'm going with the idea that Access can't do everything.

    Looks like I'll go back to my macro in excel, which can make the extra lines and could probably move the fields for me too but I just don't know how to do that part yet.

    Thanks again though for looking into it.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Good luck. Sorry I could not be of more help.

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

Similar Threads

  1. Best Design for Multiple Y/N Questions on each record
    By DanielHochman in forum Database Design
    Replies: 0
    Last Post: 07-20-2009, 02:51 PM
  2. Replies: 1
    Last Post: 02-02-2009, 05:52 AM
  3. Multiple References in one Record
    By bpkcjgorr in forum Access
    Replies: 0
    Last Post: 01-10-2008, 09:29 AM
  4. Multiple cross-references from one record
    By bpkcjgorr in forum Database Design
    Replies: 0
    Last Post: 01-03-2008, 02:33 PM
  5. Duplicating lines in an invoice report
    By GordonEdinburgh in forum Forms
    Replies: 0
    Last Post: 04-21-2007, 12:20 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