Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access/ Office 2016, 2013, 2010, and 2007 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!

Separate version for Access/Office 2003, 2002, and 2000.

Separate version for:
Access 97/95

View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?


"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP




Microsoft Access, Office/VBA, VB6 Modules royalty-free source code libraryMicrosoft Access Modules royalty-free source code libraryMicrosoft Access VBA and VB6 Module Library Free trial of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA

Module: StatusBar in Category Microsoft Access : Environment from Total Visual SourceBook

Manage the Access status bar and progress meter using Access VBA.

Procedure List

Procedure Name



(Declarations) Declarations Declarations and private variables for the modStatusBar module
StatusBarSetup Procedure Makes the Access status bars visible and invisible. Useful at the beginning of an application to turn off the status bar (gives more space) if you're not going to use it, then turn it back on after the application ends.
StatusMessageClear Procedure Clears the Access status bar text
StatusMessageSet Procedure Places a message in the Access status bar
StatusMeterClose Procedure Close the built-in Access status bar
StatusMeterInit Procedure Initialize the built-in Access status bar progress meter
StatusMeterUpdate Procedure Updates the built-in Access status bar progress meter
StatusMeterRemove Procedure Remove the Access status bar progress meter

Example Code for Using Module: StatusBar

' Example of the modStatusBar module
' To use this example:
' 1. Create a new form.
' 2. Create the following command buttons:
'       cmdTestStatusMessage
'       cmdHideShow
'       cmdTestStatusMeter
' 3. Paste the entire contents of this module into the new form's module

#If VBA7 Then
  Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal lngMilliSeconds As Long)
  Private Declare Sub Sleep Lib "kernel32" (ByVal lngMilliSeconds As Long)
#End If

Private mfVisible As Boolean

Private Sub cmdHideShow_Click()
  ' Example of StatusBarSetup
  StatusBarSetup (mfVisible)
  mfVisible = Not mfVisible
End Sub

Private Sub cmdTestStatusMessage_Click()

  ' Example of StatusMessageSet
  StatusMessageSet "Total Visual SourceBook Test................"

  ' Wait 3 seconds, then clear the status message
  Sleep 3000

  ' Example of StatusMessageClear

End Sub

Private Sub cmdTestStatusMeter_Click()

  Dim lngCounter As Long

  ' Example of StatusMeterInit
  StatusMeterInit "Init Meter", 100

  ' Example of StatusMeterUpdate
  For lngCounter = 1 To 100
    StatusMeterUpdate lngCounter
    Sleep 1
  Next lngCounter

  ' Example of StatusMeterClose
  ' Example of StatusMeterRemove

End Sub

Private Sub Form_Load()
  Me.cmdHideShow.Caption = "Hide/Show Status Bar"
  Me.cmdTestStatusMessage.Caption = "Test Status Message"
  Me.cmdTestStatusMeter.Caption = "Test Status Meter"
End Sub

Microsoft Access Module LibraryOverview of Total Visual SourceBook

The source code in Total Visual SourceBook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Additional Resources