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

Using a Parameter Field for Partial Text Matches 1

Status
Not open for further replies.

dbielenda

MIS
Nov 15, 2001
119
US
I am using this formula:

(If {?Parameter} = "" then true
else
If Instr ({?Parameter}, "?") > 0 then {TABLENAME.FIELD} like {?Parameter}
or
If Instr ({?Parameter}, "*") > 0 then {TABLENAME.FIELD} like {?Parameter}
else {?Parameter} = {TABLENAME.FIELD})

If the user does not enter anything, then give me all. However, these partial text matches are not working quite the way I hoped. Any suggestions on what I am doing wrong here? Thanks!
 
Hi,

{fieldname} like {?param}

would actually cater for all of these possibilities.

Where * is the multi character replacement
? is the single character replacement.

Hth,
Geoff

 
Thank you.. I just figured that out yesterday. This formula was a suggestion in a book I just bought, then I realized I could simplify it by doing what you suggested ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top