format detail field at runtime

M

mcnewsxp

i need to format a detail section bound textbox at runtime on a report.
i tried using the condition formatting by entering

IIf(InStr(Me.Result, "+") > 0, "positive", IIf(InStr(Me.Result, "-") > 0,
"negative", Me.Result))

nothing changed

also tried this in the deatil section

Me.txtResult.Properties(40) = IIf(InStr(Me.Result, "+") > 0, "positive",
IIf(InStr(Me.Result, "-") > 0, "negative", Me.Result))

but received an error msg.

how is this accomplished?

tia,
mcnewsxp
 
M

mcnewsxp

i fixed my undinding the text field and simpling assinging the value ala:

txtResult = iff(......)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top