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

Expression Builder

Status
Not open for further replies.

starclassic

Technical User
May 24, 2007
27
US
I need help on expression builder on the report.
Needs to reformat the output for policy number when opening the "credit" report.
the field strPolicy on table is showing like this 601234567
Output on report if strCompany = "A" then
strPolicy = 1234567-60 Else
strPolicy 60-1234567.
I'm not familiar with Expression builder. any help would be great

 
Depending on what you hope to do, this may suit:

[tt]IIf(strCompany = "A", Mid(strPolicy, 3) & "-" & Left(strPolicy, 2), Format(strPolicy, "##-#######"))[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top