Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wildcards in Parameterized View
Message
From
23/04/1999 13:25:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/04/1999 13:23:02
Mark Ganchrow
Dataware Technology Group, Ltd.
Rochester, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00211604
Message ID:
00211607
Views:
25
>I'm using the view designer, and trying to create (modify, actually) a parameterized view that will allow the user to enter any part of a name for searching.
>What I've tried is SELECT...WHERE...ACCTNAME LIKE UPPER( %?lcAcctName% ).
>
>I've tried it without the UPPER (the names are stored in all uppercase anyway), and with the question mark to the left of the first percent sign, but in no case does it prompt me for the value, and it always returns no records. The variable is not defined; when I remove the percent signs, it prompt me to enter the value.
>
>I haven't used the LIKE operator much, nor the % and _ wildcards, so this is a new area for me.
>
>Thanks for any help.
>Mark
>Mganchrow@networks-inc.net
Try like this :
like "%"+?lcAcctName+"%"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform