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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Cstr funtion, now how to justify?

Status
Not open for further replies.

wolves

Programmer
Jan 26, 2001
130
US
Converting a number to string using Cstr, but everything is left justified. How can I make my converted text right justified? Have not found a way yet,

Thanks, in advance,

 
Have a look at the Format function:
Format([Number field], "@@@@@@@@@@")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes, in the query results.

Yes, I'll check out the Format([Number field], "@@@@@@@@@@")

Thanks
 
The Format([Number field], "@@@@@@@@@@") formats everything left justified still.

Any other ideas?


 
Right(" " & [Number field], 20)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks, I tried the Right, but apparently had the incorrect format.
This worked.
Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top