Results 1 to 6 of 6
  1. #1
    sroy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2013
    Posts
    34

    Access macro to save query form output


    I am looking for a Access macro to save query form output through a button. Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    What do you mean by 'save query form output'? The data is already in table. Do you want to open a report or export the data?
    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
    sroy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2013
    Posts
    34
    I want to export the data through a button.
    The data in table is query form output. Hope this is clear.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    Export to where? Excel? PDF? Word? CSV?

    There are several ways to accomplish.

    Use the Import/Export wizard.

    Report open in PrintPreview, right click on the report > Export > choose.

    Use code (macro or VBA) with TranferSpreadsheet or OutPutTo methods.

    Other options involve advanced VBA code.
    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.

  5. #5
    sroy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2013
    Posts
    34
    Export to Excel. I need a VBA button to accomplish this task.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    Explore the referenced methods. There are many examples available. Google or search this forum.
    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.

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

Similar Threads

  1. Macro - Output to html using a template
    By thudson in forum Access
    Replies: 1
    Last Post: 04-05-2013, 12:15 AM
  2. Replies: 2
    Last Post: 03-18-2013, 03:03 PM
  3. Macro changes to form won't save
    By Daryl2106 in forum Access
    Replies: 2
    Last Post: 01-14-2013, 07:40 PM
  4. Parameter query output to form
    By hasit86 in forum Forms
    Replies: 1
    Last Post: 01-13-2013, 01:23 PM
  5. Replies: 1
    Last Post: 02-19-2012, 06:29 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