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

Change text in formula in report

Status
Not open for further replies.

lana123

Programmer
Aug 20, 2003
79
US
Hi,people.
I have the formula:

if table1.field1<>"" then
"text:" +table2.field2
else
""
I want make "text:" in formula in BoldItalic.I'm working with constant crBoldItalic but I don't get good results.
Any ideas?I'll appreciate any help.

Thanks.

Lana
 
Here is one option-

Add a text object to your report.
Add the text "text: " to it and make it bold.
Next, drag the {table.field2} field from the field explorer to the text object so that it adds it to the text object after "text: ".
Now, right click the text object, and choose format text from the popup.
Under the Common tab, click the X+2 button to the right of Suppress.
Add the following line in the editor:

{table.field1} = ""

Save, Close, and Test.


~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top