Results 1 to 4 of 4
  1. #1
    Secue is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    33

    Post Need Msgbox to close after especific time

    Hi:



    I'm developing an application to compare information that use will enter on two text boxes (field son a table) I will compare both informations, if informtion is the same I need to notify user it is OK, I'm thinking on a msgbox, but I need no interaction from user to close the msgbox and go to the next record and enter the next pair of information. How can I set msgbox to display a message but to close it automatically after a few seconds?

    Is there a way to do it?

    Thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Never seen it and would have though no, so I Binged: VBA MsgBox timeout.

    http://social.msdn.microsoft.com/For...t?forum=isvvba

    That's annoying - it works in Excel VBA but not Access VBA.
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I think you'd need to use small Popup Form displaying your message, open it and then use the Form's Timer Event to then close it after N seconds. Or you could use a Label, controlling its Visible Property, making it Visible, as appropriate, then once again using the Form's Timer Event to make it invisible, again.

    Linq ;0)>

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Yes, looks like the only way is with a form, not the intrinsic MsgBox.

    Unless I am doing something wrong in the Access VBA code. I use the same code in Excel VBA and it worked.
    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: 08-13-2013, 09:18 AM
  2. Replies: 4
    Last Post: 05-26-2013, 08:53 PM
  3. Every time I close or save changes
    By Opid in forum Access
    Replies: 1
    Last Post: 06-18-2012, 07:43 AM
  4. Replies: 0
    Last Post: 11-29-2011, 01:06 PM
  5. Replies: 2
    Last Post: 03-14-2011, 03:42 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