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!

adding a cariage return to a text field using IF then ELSE statement

Status
Not open for further replies.

grom71

IS-IT--Management
Oct 23, 2003
56
GB
Hi,
I've got a formula which looks at a string and displays some text based on this.
i.e IF "rebif 22" in (dbfield) then "please prescribe the dose of rebif as etc etc etc " else (dbfield)

I want to space out the "please prescribe etc etc" in 3 lines of text NOT one long line.
Is there a way of doing this ?
 
Hi

Try this
IF "rebif 22" in (dbfield) then
"please" & chr(13)&
"prescribe" & chr(13) &
"etc etc etc "
else (dbfield)

cheers






pgtek
 
Another option might be to add the formula to your report.
Size the formula to the width you want.
Right Click the field, choose Format Field from the pop up.
Select the option Can Grow under the Common tab.

~Brian
 
Thanks guys that works a treat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top