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

Adding Blank Spaces to a formula field Conditionally 1

Status
Not open for further replies.

kime1974

Programmer
Oct 30, 2006
36
US
I am using Crystal 8.5 and need to fill a field (LastName) with blank spaces if the length is less than 30. Example:

If my last name is Jones, I need the formula to add 25 blank spaces after it for when I export my report. If my last name is Simmons I need the formula to add 23 blank spaces, etc.

Thanks!
 
You can add spaces by using a formula like this:

{table.name}+space(30-len({table.name}))

You would have to use a nonproportional font like Courier New. I can't guarantee how this would export though.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top