Skip to Content
0
Former Member
Sep 24, 2010 at 08:31 PM

CRVS2010 Beta - help setting embedded field programatically

14 Views

I have a report where the details section spits out names that come from two fields: FIRSTNAME and LASTNAME.

They are displayed in a textobject with embedded fields []. I need to highlight only the last name if it equals "Smith." I have accomplished this by right-clicking the and "Format Embedded Field" and next to the underline checkbox write a formula that says:

IF {REPORTS.LASTNAME} = "SMITH" THEN

True

My question is, how can I set this formula programatically? I need "SMITH" to be a variable set by the vb.net program. I cannot figure out how to reference an embedded field within a textobject.

thanks.

Updated the subject accordingly

Edited by: Don Williams on Sep 24, 2010 9:54 PM