How can I display text like welcome on status bar? in Microsoft Access Simple code or explanation please 11 59595 - To Write Text on the Status Bar:
- Dim varReturn As Variant
-
-
varReturn = SysCmd(acSysCmdSetStatus, "Text to write on the Status Bar!")
- To Clear Text from the Status Bar:
- Dim varReturn As Variant
-
-
varReturn = SysCmd(acSysCmdSetStatus, " ")
NeoPa 32,556
Expert Mod 16PB - Application.Echo EchoOn:=False, bstrStatusBarText:="Your Message Here"
Or, more simply : - Application.Echo False, "Your Message Here"
- To Write Text on the Status Bar:
- Dim varReturn As Variant
-
-
varReturn = SysCmd(acSysCmdSetStatus, "Text to write on the Status Bar!")
- To Clear Text from the Status Bar:
- Dim varReturn As Variant
-
-
varReturn = SysCmd(acSysCmdSetStatus, " ")
Thanks a lot . It works perfectly. Just what I was looking for. Thanks and may God bless you.
- Application.Echo EchoOn:=False, bstrStatusBarText:="Your Message Here"
Or, more simply : - Application.Echo False, "Your Message Here"
Thanks a lot. Unfortunately, it just doesn't work.
Thanks a lot.
Thanks a lot . It works perfectly. Just what I was looking for. Thanks and may God bless you.
Same to you, davidogutu.
NeoPa 32,556
Expert Mod 16PB
Thanks a lot. Unfortunately, it just doesn't work.
Thanks a lot.
Sorry about that.
I tested it yesterday and it showed up. Unfortunately, today my status bar has disappeared completely (probably related somehow to the testing I would guess) and won't return even when I tell it to using Tools / Options.
I suppose I will need to understand this better somehow.
Ade, you might try just setting Echo back to True. The few times I've tried using it it did some strange things, and I believe you have to explicitly turn it back on.I seem to remember that even closing then re-opening Access won't reset it.
Linq ;0)>.
Sorry about that.
I tested it yesterday and it showed up. Unfortunately, today my status bar has disappeared completely (probably related somehow to the testing I would guess) and won't return even when I tell it to using Tools / Options.
I suppose I will need to understand this better somehow.
Hello NeoPa, I just think that you are simply not using Echo in the proper context. Its primary Function is not to display Text on the Status Bar: - Dim lngCounter As Long
-
-
DoCmd.Hourglass True
-
Application.Echo False, "VB Code Now Executing...."
-
-
'Simulate something the User should not see, do not Repaint the Screen
-
For lngCounter = 1 To 20000
-
Debug.Print lngCounter / 0.357
-
Next
-
-
DoCmd.Hourglass False
-
Application.Echo True 'Allow the Screen to be Repainted again
-
Ade, you might try just setting Echo back to True. The few times I've tried using it it did some strange things, and I believe you have to explicitly turn it back on.I seem to remember that even closing then re-opening Access won't reset it.
Linq ;0)>.
Hello Linq, good point to make. If you turn echo OFF in Visual Basic, you must turn it back ON or it will remain OFFf, even if the user presses CTRL+BREAK or if Visual Basic encounters a Breakpoint.
NeoPa 32,556
Expert Mod 16PB
I should have mentioned I also ran :
Although, as this only really turns on the updating of it (rather than the existence of it) I was rather pinning my hopes on setting the Status bar back to being shown on the screen.
I'll check again when I get home. Hopefully after a reboot and a restart of Access it may be fixed now (crosses fingers).
This worked for me:
Create this function, then use it within a subroutine; e.g., A_StatusBar("Write this in the status bar"). Or, in a macro use RunCode and use the same syntax. To clear the status bar, use A_StatusBar(" ") with a space.
Function A_StatusBar(tString As String)
Dim varReturn As Variant
varReturn = SysCmd(acSysCmdSetStatus, tString)
End Function
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Google Mike |
last post by:
I have PHP version 4.2.2 that ships with RH9. I want to have it write
to a file like this:
function WriteLog($sLogFile, $sMsg) {
if (substr($sLogFile,1,1) != '/') {
$sLogFile =...
|
by: Leo Muller |
last post by:
Hi,
How can I write text from code behind without getting HTML tags added to it?
Up till now I used the label control. But when I call the label.text =
"something" then the HTML will output...
|
by: Max2006 |
last post by:
Hi,
I have a user control that shows the contents of potentially big html files.
To save the server memory, I try to avoid reading the whole large-file's
text into a label or literal...
|
by: Steven |
last post by:
I am using VC++ 6.0 to build a windows based application, however, my
application allows user to input command arguments in the dos prompt
windows. I want to have a warning message for user if they...
|
by: xpcer |
last post by:
hi friends, can anyone tell me, how to write text on status bar at browser, thanks before
|
by: AricC |
last post by:
Does anyone know of a setting where you can write text into a combobox? I have some boxes with some info in it eg..
1040 Rev
1111 Rev
1025 Rev
I need the user to be able to add some letters...
|
by: Fabian Braennstroem |
last post by:
Hi,
I would like to write text directly to the clipboard of
linux using some c++ lines. Would be nice, if anyone has a suggestion, how to
do this.
Thanks!
Greetings!
Fabian
|
by: aeris |
last post by:
Hello! I'm using C# to doing my window application.
May I ask, how to write text on textbox after the default text is clear?
I have setted the default text in textbox, when a user click on it,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |