Procedure Name | Type | Description |
(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 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) #Else 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 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 StatusMeterClose ' Example of StatusMeterRemove 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
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.
Total Visual SourceBook is written for the needs of a developer using a source code library covering the many challenges you face. Countless developers over the years have told us they learned some or much of their development skills and tricks from our code. You can too!
Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!
"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