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!

Select Expert using equals 1

Status
Not open for further replies.

Jimmy2128

Programmer
Feb 6, 2003
58
US
I have a orders table that contains a column called Orders_Type_Code. When I go to Select expert I need to pull (2) orders_type_code that equals "ADVINV" and "CMADVINV" so I do the following:

{Orders.ORDER_TYPE_CODE} = "ADVINV"

now when I try to add the second code is giving me an error that is not a formula

{Orders.ORDER_TYPE_CODE} = "ADVINV"
{Orders.ORDER_TYPE_CODE} = "CMADVINV"

I tried this too

{Orders.ORDER_TYPE_CODE} = "ADVINV" Or "CMADVINV"

Still doesnt work.

Please any advise...

Regards,

Jym

 
The correct syntax is:

{Orders.ORDER_TYPE_CODE} in ["CMADVINV","ADVINV"]

-LB

 
The following will work as well:

{Orders.ORDER_TYPE_CODE} = "ADVINV" or
{Orders.ORDER_TYPE_CODE} = "CMADVINV"


Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top