UtterAccess Discussion Forums
  UtterAccess Home  | Forums Index  | Search  | Links DB  | FAQs   
Microsoft® Access help forums plus Excel, Word, Outlook®, Visual Basic®, SQL Server®, Office online and... many more!

Access UtterAccess!
New? Welcome!
Join UA here!

Members Login


Password


Remember me!


Search The Database

More Links

  UtterAccess Links
  Link to UtterAccess
  Call UtterAccess Home
  Add UA to Favorites

Quick Jump



UA Recommended

Access Team Blog

UA Recommended

UA's own ScottGem
      and datAdrenaline!

Servers tuned by
Vaultechnology
PleaseWait form and code

PleaseWait form and code  Version: 2000 (9.0)

Posted on 05/17/08 12:42 PM Attachment (380 downloads)
Posted by strive4peace2010 - Utter Access Editor
Posts: 19024 - Loc: Colorado

Forum: Access Code Archive
• Edit
• Reply
• Quote
• Quick Reply
• Print this post
• Bookmark Post
• Notify Moderator

• Top of page

Do you have a need to pop up a 'PleaseWait' form while you are processing something and then close it when you are done?

Attached is a zip file containing an mdb in 2000 format with a form and a module. Import these 2 objects into your working database.

form name: f_PleaseWait

Popup --> yes
Modal --> no
Navigation Buttons --> No
Dividing Lines --> No
RecordSelectors --> No

with a label
Name --> Msg
Caption --> Please Wait...

module name: bas_PleaseWait

Code:

Option Compare Database
Option Explicit
'
' Crystal 5-17-08
' strive4peace2008@yahoo.com
'
'
'------------------ open the PleaseWait form

Sub ShowPleaseWait()
DoCmd.OpenForm "f_PleaseWait"
Forms!f_PleaseWait.Repaint
End Sub
'
'------------------ close the PleaseWait form

Sub ClosePleaseWait()
If CurrentProject.AllForms("f_PleaseWait").IsLoaded Then
DoCmd.Close acForm, "f_PleaseWait", acSaveNo
End If
End Sub
'
'------------------ change the PleaseWait message

Sub MsgPleaseWait(Optional pMsg As String = "PleaseWait...")
Forms!f_PleaseWait.Msg.Caption = pMsg
Forms!f_PleaseWait.Repaint
End Sub




--------------------
Warm Regards,
Crystal, MVP
Free Data Dictionary Tool
Have an awesome day

Page Jump
Pages: 1

Navigate
Post List
Previous thread Previous
Next thread Next

Thread Options & Info
• Threaded
• Print Thread

• 2211 Thread views

Page Jump
Pages: 1