Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a conditional 'where' clause
Message
De
03/06/1999 16:11:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00226172
Message ID:
00226212
Vues:
24
>Valerie,
>
>Create a prarmeterized view in the dbc with the WHERE clause of
>
>p1_funckey = ?gcfucntion
>
>Then use this code;
>
>gcfunction = IIF( gcfunction = "001","",gcfunction)
>USE TheView

I tried this, but when gcfunction = "", I get an empty result set instead of all records. Am I doing something wrong here? The sql from my view is:
SELECT *;
 FROM dbo.P1 P1;
 WHERE P1.P1_FUNCKEY = ?gcfunction
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform