Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a conditional 'where' clause
Message
From
03/06/1999 16:11:35
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00226172
Message ID:
00226212
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform