Status Bar Text for Form

J

Jay

Hi all,

Got a minor annoyance that I can't figure out. I've set the Status Bar text
property for all my controls on my forms, and if I click on a control, the
name appears in the status bar without a problem.

However, when the form is displayed with no control selected, I have Form
Ready displayed in the status bar. What I'd like is to set the value to the
Name of the form.

However, the only code I could find to do that is this:
Dim l As Long
l = SysCmd(acSysCmdSetStatus, "Data Metrics")

But the problem with the code is the Status Bar text doesn't change if I
select a control. It remains what I set in the Form_Load. I tried placing
it in other events for the Form, but no luck. It would seem to be
unnecessary to have to code the clearing of the status bar on every click
event on the form.

Any help is appreciated.

Thanks,
Jay
 
R

Rob Oldfield

As far as I was aware, it's impossible to open a form with no control
active. And, although I can't say I've ever really played with the status
bar text, I don't remember ever seeing "Form Ready" down there.

What's the first control in the forms tab order? And are you doing anything
(having removed the 'Data Metrics' thing) in the load events of the form to
set it?
 

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