Results 1 to 4 of 4
  1. #1
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169

    Popup to say item is complete or finished

    I have a code that exports to an Excel but I want the end user to choose the name of the file and where they want it and have a pop-up that says it is done.



    Code:
    Private Sub cmdExcel_Click()
    DoCmd.OutputTo acOutputQuery, "qryResults", "ExcelWorkbook(*.xlsx)", "C:\users\" & Environ$("username") & "\Documents\qryResults.xlsx", , , , acExportQualityPrint
    End Sub

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,957
    MsgBox "Export Completed"
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    How do you plan on letting user choose the name??? I'd include date and time in filename no need for user to choose anything. File is already being stored in User directory.
    For the completion message/popup Try
    Code:
    MsgBox "Export completed  " & Environ$("username"), vbOKOnly

    OOops: June7 is toooo fast.
    Last edited by orange; 08-13-2014 at 02:30 PM. Reason: syntax

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,957
    But you gave more info I overlooked!
    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: 6
    Last Post: 04-01-2013, 12:25 PM
  2. Parent Item / Child Item Not Saving Correctly Together
    By Evilferret in forum Programming
    Replies: 6
    Last Post: 08-24-2012, 02:30 PM
  3. Replies: 7
    Last Post: 10-25-2011, 08:32 PM
  4. Finished Database - Question
    By theilercabin in forum Access
    Replies: 2
    Last Post: 10-10-2011, 02:29 PM
  5. Putting a Finished Database up on the Network
    By Imgsolutions in forum Access
    Replies: 1
    Last Post: 07-14-2010, 03:56 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