Forms - Display/View Query

A

Al

Hi,

I have a field (Memo) field that's displayed on a form. This is simply
showing terms for the DB.

Simple thing - it currently shows this as text as if I've selected all of
the data. I've set the field to not be editable etc... Is there any way that
I can just simply show this as data without it appearing that I've selected
all of the text?.

With thanks, Al.
 
R

Rick Brandt

Al said:
Hi,

I have a field (Memo) field that's displayed on a form. This is
simply showing terms for the DB.

Simple thing - it currently shows this as text as if I've selected
all of the data. I've set the field to not be editable etc... Is
there any way that I can just simply show this as data without it
appearing that I've selected all of the text?.

With thanks, Al.

Several points:

TextBox controls show "selected" text as highlighted.

By Default TextBoxes select their entire contents when they receive focus by
any means other than a mouse-click. This behavior can be changed in
options.

The TextBox holding your Memo field apparenty is first in the TabOrder or
the only thing in the TabOrder. You could make some other control be first
in the TabOrder and it would solve some of this. If however, you give the
Memo control focus and then move to another record then all of the text on
the next record will be selected and thus highlighted again.

You could make the TextBox disabled, but then you would not be able to
scroll either and you might need that.

You can use the GotFocus event of the control to de-select the text so it
won't be highlighted.

Me.TextBoxName.SelStart = 0
Me.TextBoxName.SelLength = 0
 

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