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

Parameter Searching 2 Columns

Status
Not open for further replies.

rbh123456789

Technical User
Mar 3, 2010
80
CA
CR 11.5

Hello all,

The below Record Selection statement works perfectly well.
However, i want the {?respsearch} parameter to query the{view.respname} column, AND an addional one named {view.othername}

What would the syntax be?

(
(
{?compsearch} <> "" and
{view.compname} like "*" + {?compsearch} + "*";
)
or
(
{?respsearch} <> "" and
{view.respname} like "*" + {?respsearch} + "*";
)
)
 
(
(
{?compsearch} <> "" and
{view.compname} like "*" + {?compsearch} + "*"
)
or
(
{?respsearch} <> "" and
(
{view.respname} like "*" + {?respsearch} + "*" or
{view.othername} like "*"+ {?respsearch} + "*"
)
)
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top