text box - tabbing issue

Z

Zoe

I have a bound text box on my form.
I want the information to display but I do not want the user to be able to
change it.
Enabled = No
Locked = Yes
Tab Stop = No
These settings seem to do want I want except when I tab through the other
text boxes on my form. If I tab past the locked text box, the information in
the text box disappears.
I know I am missing something, but I cannot figure out how to prevent this.
Any assistance is appreciated!
 
D

Dirk Goldgar

Zoe said:
I have a bound text box on my form.
I want the information to display but I do not want the user to be able to
change it.
Enabled = No
Locked = Yes
Tab Stop = No
These settings seem to do want I want except when I tab through the other
text boxes on my form. If I tab past the locked text box, the information
in
the text box disappears.
I know I am missing something, but I cannot figure out how to prevent
this.
Any assistance is appreciated!

I'm guessing that your text box would be the last control in the tab order,
and your form's Cycle property is set to All Records, and AllowAdditions is
Yes/True. So when you tab past this control, your form goes to a new blank
record.

If this is the case, you can correct it by either setting the form's Cycle
property to "Current Record", or by setting the form's AllowAdditions
property to No (so there will be no blank record to fill in.
 
Z

Zoe

I still have the issue.
My settings are:
Enabled = Yes
Locked = Yes
Tab Stop = No

Arghh!
 
A

Al Campagna

Zoe,
Do you mean that the text control itself actually disappears, or the
text control appears as "greyed out?"

If Greyed out, try...
Enabled = Yes
Locked = Yes
Tab Stop = No
which will accomplish the same thing. (Skip field in tabbing, and no data
change allowed)

If disappearing, check that you may have some code like...
YourControlName.Visible = False
triggering somewhere down the line from the contol involved. Like an
OnEnter event maybe?
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 

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