Results 1 to 4 of 4
  1. #1
    David92595 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    22

    Createobject.Popup Opens With "okay" Box, Access 2007

    Hello,



    I have borrowed a bit of code to open a popup box/message box (Not sure what the difference is), and it's working great. However, when it run, it opens with an Okay button in it. I need to get ride of the button, or hide it, ect

    Code:
    CreateObject("WScript.Shell").PopUp "A new version of the Database is available. " & vbCrLf & _
            "Please wait while your local copy is updated. " & vbCrLf & _
            "Once the update has completed this window " & vbCrLf & _
            "will close and then reopen automatically. ", 7, "New Database Version"

    This run with our new auto Front End updater code.

    I don't care if it is a message box, popup, I'd like to try to stay way from creating yet another form in our FE if at all possible. I know I can call a form to do what I need.

    As always, any help is greatly apprechated.

    Thank you,
    David92595

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Can't get rid of the Okay button on popup MsgBox. If you could, would not be able to close it.

    I have never seen this PopUp method. Why invoke Shell just for a message box?
    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
    David92595 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    22
    Currently, this opens the message box, and waits 7 seconds before runing a cmd line script that updates the Front end. Clicking the okay button skips the 7 second wait. I think it's useful, my boss does not. So I'm looking for an alternative, hopefully one that doesn't involve creating yet another form.

    David92595

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Okay, MsgBox does not have a 'wait' argument, PopUp is interesting alternative. There is no parameter in the button type argument for 'no button'.
    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: 1
    Last Post: 09-20-2012, 03:37 PM
  2. Replies: 2
    Last Post: 03-29-2012, 08:49 AM
  3. Replies: 7
    Last Post: 01-29-2012, 07:44 AM
  4. Replies: 2
    Last Post: 11-04-2011, 02:45 AM
  5. Replies: 4
    Last Post: 01-06-2011, 10:52 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