Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP: FORMATTING TEXT BOXES IN FORMS

Status
Not open for further replies.

HenryE

IS-IT--Management
Apr 30, 2002
42
US
Hi All,

Anyone know if it is possible to format text boxes and labels in Access forms so that, for example, the text is pushed in one space? Basically, I'm trying to have it not pressed right up against the side of the text box or label, and was wondering if this can be done automatically. I'm trying with various uses of the @, but it's not working so far.

Thanks much.

Henry
 
I'm thinking you could add a space in from the Before Update property of the text box.

This example would keep a space on the left side of the text inside the box at all times:


Public Sub TextBox_Before_Update

If Not Left(TextBox.Value, 1) = " " Then
TextBox.Value = " " & TextBox.Value
End If

End Sub
 
Oh, that would work for Text only, wouldn't work for fields set as numbers or dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top