Results 1 to 4 of 4
  1. #1
    buhaj47 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2015
    Location
    Poland
    Posts
    2

    Macro for export of multiple queries without formatting


    Hi guys, I have created a macro to export various queries to multiple folders in Access 2010 - I'm doing that every day and it would be good to automate this. However, the queries are exported with formatting, and the application asks me whether to replace the old file. How to turn off these two settings?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Which macro action are you using to export the queries?
    Note that you can use the SetWarnings action to suppress those warnings. Just add this action to shut them off before the export actions, then add another SetWarnings action at the end to turn them back on.

  3. #3
    buhaj47 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2015
    Location
    Poland
    Posts
    2
    I just click Create -> Macro -> Export with Formatting. There is no option to export without formatting it seems.

    EDIT: I have managed to create the macro, but there is an error on the way; one of the files cannot be saved because database or file is read-only (while in reality the file is not) - error 2950. Any ideas guys?

    EDIT2: The file path was incorrect, amended it and the macro works fine. Thanks!
    Last edited by buhaj47; 01-27-2015 at 05:31 AM. Reason: Macro created

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Glad you seemed to get things working.

    Note that there are also other Macro actions you can use to Export data, such as:

    TransferText - to export data to a text file
    TransferSpreadsheet - to export data to an Excel file
    OutputTo - another action to export data

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

Similar Threads

  1. Replies: 1
    Last Post: 08-12-2013, 09:27 AM
  2. Formatting text of an export
    By Sarge, USMC in forum Import/Export Data
    Replies: 11
    Last Post: 02-27-2013, 09:08 PM
  3. Replies: 4
    Last Post: 06-10-2012, 02:29 PM
  4. Replies: 1
    Last Post: 03-12-2012, 02:21 PM
  5. Export Formatting
    By arthura in forum Import/Export Data
    Replies: 0
    Last Post: 02-20-2009, 08:44 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