How do I disable highlight of locked memo field?

M

M Skabialka

I have an Access 2007 subform which is a long text memo. Users are to read
it but not change it. I have locked the field so it won't be modified but
when they use the scroll bar the text becomes highlighted, so white on
black.
How can I disable highlighting the text when the scroll bar is activated?
 
P

Peter Hibbs

Try setting the Tab Stop property of the Memo field to No (to stop the
user's tabbing into it) and then adding this line in the field's Click
event.

YourFieldName.SelStart = 0

where YourFieldName is the name of the Memo field.

Peter Hibbs.
 
L

Larry Linson

Presumably by "have locked the field", you mean you have set the Locked
property of the Form Control displaying the Field to Yes. To prevent the
user from highlighting the field, set the Control's Enabled property to No.

Larry Linson
Microsoft Office Access MVP
 
P

Peter Hibbs

Larry,

I believe that disabling the control also disables the scroll bar and
it sounds as if the OP wants to use the scroll facility.

Peter Hibbs.
 
M

M Skabialka

Thanks for the suggestions - I decided to break the information into much
smaller segments so that the user can digest less at a time. This was a
design issue that I decided needed a better design rather than work with a
poorer one.
 

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