Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing parametrized view on the fly (find form)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Changing parametrized view on the fly (find form)
Divers
Thread ID:
00361044
Message ID:
00361044
Vues:
56
Is it possible to modify the sql of a view on the fly?

I have a find form and I would like to give the option of searching based on:

SELECT Providers.iid, Providers.lname;
FROM rac!providers;
WHERE UPPER(Providers.lname) = UPPER(?vp_lname);
ORDER BY Providers.lname

or:

SELECT Providers.iid, Providers.lname;
FROM rac!providers;
WHERE UPPER(Providers.lname) Like UPPER(?vp_lname); && like instead of '='
ORDER BY Providers.lname

This means that they can search all providers whose names start with "rob" or all providers whose names CONTAIN the string "rob".

Or perhaps there are other ways to accomplish this?

Thanks!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform