473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to write text on Status bar

How can I display text like welcome on status bar? in Microsoft Access


Simple code or explanation please
Sep 7 '08 #1
11 59595
ADezii
8,834 Expert 8TB
  1. To Write Text on the Status Bar:
    Expand|Select|Wrap|Line Numbers
    1. Dim varReturn As Variant
    2.  
    3. varReturn = SysCmd(acSysCmdSetStatus, "Text to write on the Status Bar!")
  2. To Clear Text from the Status Bar:
    Expand|Select|Wrap|Line Numbers
    1. Dim varReturn As Variant
    2.  
    3. varReturn = SysCmd(acSysCmdSetStatus, " ")
Sep 7 '08 #2
NeoPa
32,556 Expert Mod 16PB
Expand|Select|Wrap|Line Numbers
  1. Application.Echo EchoOn:=False, bstrStatusBarText:="Your Message Here"
Or, more simply :
Expand|Select|Wrap|Line Numbers
  1. Application.Echo False, "Your Message Here"
Sep 7 '08 #3
  1. To Write Text on the Status Bar:
    Expand|Select|Wrap|Line Numbers
    1. Dim varReturn As Variant
    2.  
    3. varReturn = SysCmd(acSysCmdSetStatus, "Text to write on the Status Bar!")
  2. To Clear Text from the Status Bar:
    Expand|Select|Wrap|Line Numbers
    1. Dim varReturn As Variant
    2.  
    3. varReturn = SysCmd(acSysCmdSetStatus, " ")

Thanks a lot . It works perfectly. Just what I was looking for. Thanks and may God bless you.
Sep 8 '08 #4
Expand|Select|Wrap|Line Numbers
  1. Application.Echo EchoOn:=False, bstrStatusBarText:="Your Message Here"
Or, more simply :
Expand|Select|Wrap|Line Numbers
  1. Application.Echo False, "Your Message Here"

Thanks a lot. Unfortunately, it just doesn't work.

Thanks a lot.
Sep 8 '08 #5
ADezii
8,834 Expert 8TB
Thanks a lot . It works perfectly. Just what I was looking for. Thanks and may God bless you.
Same to you, davidogutu.
Sep 8 '08 #6
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.
Sep 8 '08 #7
missinglinq
3,532 Expert 2GB
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)>.
Sep 8 '08 #8
ADezii
8,834 Expert 8TB
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:
Expand|Select|Wrap|Line Numbers
  1. Dim lngCounter As Long
  2.  
  3. DoCmd.Hourglass True
  4. Application.Echo False, "VB Code Now Executing...."
  5.  
  6. 'Simulate something the User should not see, do not Repaint the Screen
  7. For lngCounter = 1 To 20000
  8.   Debug.Print lngCounter / 0.357
  9. Next
  10.  
  11. DoCmd.Hourglass False
  12. Application.Echo True     'Allow the Screen to be Repainted again
  13.  
Sep 9 '08 #9
ADezii
8,834 Expert 8TB
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.
Sep 9 '08 #10
NeoPa
32,556 Expert Mod 16PB
I should have mentioned I also ran :
Expand|Select|Wrap|Line Numbers
  1. Application.Echo True
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).
Sep 9 '08 #11
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
Sep 12 '16 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

4
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 =...
3
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...
1
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...
3
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...
2
by: xpcer | last post by:
hi friends, can anyone tell me, how to write text on status bar at browser, thanks before
2
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...
3
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
4
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,...
0
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...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.