Results 1 to 3 of 3
  1. #1
    skydivetom is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2019
    Posts
    1,044

    Access into Excel template

    Hello Experts:

    I have been working on a re-engineering project allowing the customer to more efficiently apply data management procedures. More specifically, the re-engineering process included, but was not limited to, the design of a relational database. Much of the architectural design has now been completed and I am transitioning into the development of reports.

    For many reports, I have been utilizing Access’ report objects IOT to output information into the typical 8.5 x 11 report format.

    However, additional legacy reports (i.e., in Excel where some files have more than 50 columns) probably need to be exported (from a query) into Excel vs. utilizing Access’ reports.



    Attached sample Excel only illustrates how the current Excel file summarizes information.
    - As mentioned previously, the actual Excel has 50+ columns (for demo purposes, there is no need to include them all in this sample).
    - Also, the Excel file has the column headers rotated.
    - And, finally, the Excel uses grouping to sum up columns C:E for each branch.

    I have my doubts that mimicking this Excel in Access is the best choice (see example Report1 in Access). It looks pretty poor – instead, I believe I should simply export the query into Excel.

    My question: If I export the query into Excel (see “Query.xlsx”), the format however is completely different than the format of the legacy Excel file (see “Legacy.xlsx”). How can I export the data from Access into Excel and maintain the format of the Excel legacy file? Naturally, the number of records will grow in the Access database.

    Ultimately, I’d like to utilize the format of the legacy Excel file as a template (with column headers rotated + the group sums) and simply export data w/o losing the integrity of the grouping as the number of records will grow. Is that doable? If so, how?

    Thank you in advance for your assistance to determine an export routine. If the export routine (from Access query into Excel file) is the best option, I need to be able to easily modify such routine since I need to integrate the additional fields/columns, etc.
    EEH
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    You could Export the Query to Excel and apply a Pivot Table to the results. This could easily be accomplished with a little bit of VBA programming.

    This may help-->http://accessblog.net/2006/07/export...cel-range.html

  3. #3
    skydivetom is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2019
    Posts
    1,044
    Alansidman:

    Thank you... I'll give it a try. Appreciate the feedback.

    I'm also considering creating a connection (from Excel to Access) IOT to keep the format. Again, thanks for the recommendation.

    Cheers,
    EEH

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

Similar Threads

  1. Exporting my Access Report into an Excel Template
    By Peter Simpson in forum Import/Export Data
    Replies: 3
    Last Post: 11-22-2018, 11:10 PM
  2. Exporting Query From Access to Excel Template
    By manics31 in forum Import/Export Data
    Replies: 2
    Last Post: 09-25-2018, 05:49 PM
  3. Replies: 1
    Last Post: 11-05-2015, 12:13 PM
  4. MS Access query to MS Excel Template
    By hect1c in forum Import/Export Data
    Replies: 4
    Last Post: 11-11-2014, 12:47 PM
  5. Access to Excel template
    By thart21 in forum Import/Export Data
    Replies: 1
    Last Post: 02-16-2012, 05:49 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