Textbox

  • Thread starter Thread starter Hilliard
  • Start date Start date
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."
 
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.
 
Dave: That won't make a difference: you'll still get the "funny black
square". Access Text Boxes cannot render tabs correctly.
 
Back
Top