ACC: How to Change the Status Bar Text Using SysCmd()ID: Q105511
|
Moderate: Requires basic macro, coding, and interoperability skills.
This article demonstrates how to use the SysCmd() function to display
custom messages in the Microsoft Access status bar.
NOTE: This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools provided
with Microsoft Access. For more information on Access Basic, please refer
to the "Introduction to Programming" manual in Microsoft Access version
1.x, or the "Building Applications" manual, Chapter 3, "Introducing Access
Basic" in version 2.0.
The SysCmd() function is documented in the manual "The Secrets of
AccessWizards," which is included with the Microsoft Access Distribution
Kit (ADK) version 1.1. You can use this function to change the text that
appears in the status bar. For example, you might want to change the status
bar to read "Sorting..." while a sort operation is taking place, and then
remove it when the operation is complete.
The SysCmd() function syntax is as follows:
SysCmd(<action> [, <text>])
4 - Set the status bar text to the text argument
5 - Reset the status bar text
? SysCmd(4, "Sorting...")
? SysCmd(5)
Function StatusBar ()
Dim RetVal As Variant
RetVal = SysCmd(4, "The rain in Spain falls mainly ...")
MsgBox "Press OK when you are ready to finish!"
RetVal = SysCmd(5)
End Function
Microsoft Access Distribution Kit "The Secrets of AccessWizards," version 1.1, page 30
Additional query words: statusbar progressmeter
Keywords : kbprg
Version : 1.0 1.1 2.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 26, 1999