Results 1 to 5 of 5
  1. #1
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235

    When Closing Report message to ask "Would you like to save this report?"

    Good morning,
    I'm looking to have an option box appear whenever I close a report asking "Would you like to save this report?".
    If YES is clicked I then need a prompt for location. I would also like to format as a .pdf.
    If NO is selected then the report simply closes.



    Is this easily obtainable?

    Speck

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I then need a prompt for location
    - google 'filedialog' for a variety of possible solutions. The option you will probably require is msoFileDialogSaveAs

    I would also like to format as a .pdf.
    google 'docmd.outputto' to find how to do this

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    As Ajax suggests, the OutputTo method can save report as PDF. And if you want to allow user to specify the destination, use FileDialog.

    Both are common topics in 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.

  4. #4
    sstiebinger is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    105
    and if no simply DoCmd.Close

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Attempt code and when you encounter issue, post specific question.
    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. Replies: 2
    Last Post: 07-31-2015, 02:49 PM
  2. Replies: 20
    Last Post: 07-29-2015, 12:41 PM
  3. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  4. Report Footer "Missing Operator" message
    By ewassmer in forum Reports
    Replies: 2
    Last Post: 09-28-2011, 11:03 AM
  5. Replies: 11
    Last Post: 11-26-2010, 10:53 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