Textbox

H

Hilliard

Hi! I'm trying to display some text in a textbox I placed into a form. The
text contains a tab character (vbTab) which does not display correctly.
Instead it shows as a funny black square. Below is my code. What am I doing
wrong?!

Me.Text1 = "Hello " & vbTab & " World."
 
F

fredg

Hi! I'm trying to display some text in a textbox I placed into a form. The
text contains a tab character (vbTab) which does not display correctly.
Instead it shows as a funny black square. Below is my code. What am I doing
wrong?!

Me.Text1 = "Hello " & vbTab & " World."

You can't use the vbTab character within text.
It will show a funny black square. :)

Me.Text1 = "Hello " & Space(10) & " World."
or..
Me.Text1 = "Hello World."

will separate the words by 10 spaces (12 if you include the trailing
or leading space in each part of your word strings).

If you had something else in mind, post back.
 
D

Douglas J. Steele

Dave: That won't make a difference: you'll still get the "funny black
square". Access Text Boxes cannot render tabs correctly.
 
Top