Syscmd

K

Kevin McCartney

I have a form that checks my linked tables and then a main
menu appears. If I then click on a button to openan other
form, none of my status bar text appears. If I put the
command SysCmd(acSysCmdClearStatus) in a debug window I
will see the status bar text. If I place the following
command varReturn = SysCmd(acSysCmdClearStatus) or SysCmd
(acSysCmdClearStatus) in the part of code that opens the
selected button it still does not show the status bar
text. I looked at the return value in the button code and
for varReturn = SysCmd(acSysCmdClearStatus), varReturn is
a null value, is this correct and how do I make the status
bar text appear correctly.

TIA
regards
KM
 
D

Dirk Goldgar

Kevin McCartney said:
I have a form that checks my linked tables and then a main
menu appears. If I then click on a button to openan other
form, none of my status bar text appears. If I put the
command SysCmd(acSysCmdClearStatus) in a debug window I
will see the status bar text. If I place the following
command varReturn = SysCmd(acSysCmdClearStatus) or SysCmd
(acSysCmdClearStatus) in the part of code that opens the
selected button it still does not show the status bar
text. I looked at the return value in the button code and
for varReturn = SysCmd(acSysCmdClearStatus), varReturn is
a null value, is this correct and how do I make the status
bar text appear correctly.

In the case of

varReturn = SysCmd(acSysCmdClearStatus)

varReturn will always be Null, since this SysCmd function just performs
the action and doesn't return a value.

I'm not sure why your status-bar text doesn't appear. Does the status
bar show anything at all? I wonder if you have a statement

SysCmd acSysCmdSetStatus, ...

somewhere in there, after you've run the command to clear the status.
I'd try setting a breakpoint and stepping through the code to see
exactly what is happening, and when.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top