Text box Access 2007 - no multiline property

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,958
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi,

How can I see text on each line ? No multiline property and at the moment they do not wrap with vblf .

Thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Thanks, I had tried that but suspect something else is wrong - or my logic.
I've bound a Form to a query and a text box to one of the fields. But the field uses vblf which doesn't wordwrap in the text box.
So I tried this code - which had no effect.

Code:
Private Sub Form_Current()
Dim Disp As String
Disp = Replace(Me.Text4, vbLf, vbCrLf)
Me.Text4 = Disp
End Sub
I was attempting to display the text with LFs in the text box, but not change the underlying table. Now I wondering if that is wrong?

BTW when you click in datasheet view, why does part of the text/cell become highlighted or selected. How can you get your edit cursor?

Thanks
 
Upvote 0
I don't think you can use vbCrLf to force a new line in a control. Try Chr(13) & Chr(10) in that order.
If you're highlighting part of the field contents when you try to insert the cursor, you have probably hit F8 and turned on extend mode when intending to step through code but the database was the active window and not the vb editor. Shift F8 turns it off.
 
Upvote 0

Forum statistics

Threads
1,221,849
Messages
6,162,425
Members
451,765
Latest member
craigvan888

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top