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!

ReportBuilder Formula Help

Status
Not open for further replies.

pwomack

Technical User
Apr 16, 2005
121
US
Using SQL Server 2005 ReportBuilder.

I currently have this formula field and it works:

IF((Region = "NW"),"West & New West",RegionName)

I want to modify the formula field to include an additional region value, such as:

IF((Region = "NW" OR "PD"),"West & New West",RegionName)

But this does not work. I get a syntax error saying: expected ).

Help Please.
 
haven't got access to reportbuilder at the moment to check, but it may be that you can use;

IF(OR(Region="NW",Region="PD"),"West & New West",RegionName)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top