Disable status bar wording on form during OnTimer event?

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,462
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Is there a way to disable the status bar showing the word "Calculating . . . " every time an OnTimer Event does a requery?

I have a real time clock on a form and I used the following code :
Code:
Private Sub Form_Timer()
   DoCmd.Requery "Clock"
End Sub
This refreshes the clock every second (I used a 1000 millisecond setting) to give a real time, I realise this is resource hungry and will scale it back to once a minute for the more heavy duty forms.

However, every time it does the requery, my status bar at the bottom of the screen changes from the value I have set on the control (usually "enter such and such") to "Calculating . . ." and then it reverts back to the control value again. It does this every refresh, i.e once every second. I tried to stop the flashing "Calculating . . ." in the status bar by turning off the Echo in the VB code using the DoCmd.Echo command, but that didn't work and caused other problems.

Are there any suggestions as to how to get this to stop flashing"Calculating . . " without disabling the status bar?

TIA, Andrew. :)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Thanks for the pointer. The suggestion:
Code:
 "Application.Echo False, ""
was as effective as my docmd.echo (i.e. ineffective) and the other suggestion :
Code:
ReturnVal = SysCmd(SYSCMD_SETSTATUS," ")
disabled the status bar - which will be useful when I have to run multiple queries behind the scenes. Thanks for the pointer anyway and I might have to resort to a requery once every 15-30 seconds.
Andrew :)
 
Upvote 0

Forum statistics

Threads
1,221,889
Messages
6,162,624
Members
451,778
Latest member
ragananthony7911

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top