Results 1 to 8 of 8
  1. #1
    ick64 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    22

    How to export a report from an Access db to another Access db

    Hello all,

    I have two different/separate Access databases and I would like to export a report from one db to another as it has a very specific and detailed format.



    Before moving on with the export procedure, I would like to ask you how must I consider the fields from the exporting db? Must I have them created in the importing db exactly with the same names or will Access ask for some kind of correlation among the fields from both db's?


    Thank you!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in a macro,
    set the action COPYOBJECT
    set the src db path
    target db path
    object type (report)
    object name

    run the macro.
    The report will run assuming ALL fields in the same query in the target db.

  3. #3
    ick64 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    22
    Thanks, I will work on it!

  4. #4
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Just to suggest a much easier method.

    IMPORT the report from the old database into the new database using the import wizard (External Data ... Import ... Access ...)

    As Ranman said previously, the report will run as long as you have the same data source (query or table) in new database

  5. #5
    ick64 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    22
    Yes - so the key here will be to keep the same data source.

    Thank you!!

  6. #6
    SierraJuliet's Avatar
    SierraJuliet is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2017
    Location
    Earth
    Posts
    211
    Side Note:

    It is worth mentioning that it is wise to export all tables, queries, forms, and reports as excel and/or text files by selecting "Export data with formatting and layout." and all Class Objects as File Class and modules as Basic Class (Alt + F11).
    This will make data source duplication in the future easier as everything will be formatted the same.

  7. #7
    ick64 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    22
    Got it - thanks SierraJuliet!

  8. #8
    SierraJuliet's Avatar
    SierraJuliet is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2017
    Location
    Earth
    Posts
    211
    You are welcome. Just be sure to do it when you are all complete with building your database but before you enter information into it so you have nice clean tables. Afterwards you can export the same stuff with your information contained therein but I would ensure both are kept separate. This is my personal preference.

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

Similar Threads

  1. Not able to export Query report in access
    By narendrabr in forum Database Design
    Replies: 6
    Last Post: 04-09-2015, 10:35 AM
  2. export access report to word
    By afshin in forum Access
    Replies: 6
    Last Post: 01-15-2014, 12:11 AM
  3. Export formatted access report into excel
    By 555Rage in forum Import/Export Data
    Replies: 5
    Last Post: 10-10-2012, 11:18 AM
  4. Replies: 3
    Last Post: 02-01-2011, 10:18 AM
  5. Access 2003 - Export Report to HTML
    By darth.pathos in forum Import/Export Data
    Replies: 0
    Last Post: 03-20-2010, 01:13 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