Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing parametrized view on the fly (find form)
Message
 
To
19/04/2000 14:35:30
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00361044
Message ID:
00363242
Views:
15
Using an IIF is gonna degrade your performance on the query. If you're trying to find any and all strings you might want to choose something like the following:

SELECT Providers.iid, Providers.lname, ;
FROM rac!providers;
WHERE UPPER(Providers.lname) LIKE UPPER(?("%"+vp_lname+"%"))

This query will display all records that contain the string.

This way you keep with standards required by ANSI SQL if you ever decide to upsize.

A better way of doing this is to include the table and a parameterized view in a DBC and that works alot better, also.
Previous
Reply
Map
View

Click here to load this message in the networking platform