Hello All,
I have a simple problem that I can seem to figure out. I want to remove the "Run Query" text from my status bar and replace it with something more custom. However, the code I've been using just flashes my custom text and reverts back to "Run Query". After the query completes my second custom message is displayed.
This is the code I'm using:
[code=vb]
Dim strStatus as String
Dim varStatus as Variant
strStatus = "Custom Text Here....."
varStatus = SysCmd(acSysCmd SetStatus, strStatus)
DoCmd.RunMacro ("Update Department Tables")
strStatus = "Custom Text Here Too..."
varStatus = SysCmd(acSysCmd SetStatus, strStatus)
[/code]
Thanks in Advance,
Bender
I have a simple problem that I can seem to figure out. I want to remove the "Run Query" text from my status bar and replace it with something more custom. However, the code I've been using just flashes my custom text and reverts back to "Run Query". After the query completes my second custom message is displayed.
This is the code I'm using:
[code=vb]
Dim strStatus as String
Dim varStatus as Variant
strStatus = "Custom Text Here....."
varStatus = SysCmd(acSysCmd SetStatus, strStatus)
DoCmd.RunMacro ("Update Department Tables")
strStatus = "Custom Text Here Too..."
varStatus = SysCmd(acSysCmd SetStatus, strStatus)
[/code]
Thanks in Advance,
Bender
Comment