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.
 

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

Similar Threads

centering text on textbox 4
Format Function 6
Multiple subforms 0
DLookup Challenge 11
Making fields line up 2
Using Tabs Characters in Labels Controls 6
Counting Lines of Text in TextBox 3
Subform Null Values 1

Back
Top