Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized View
Message
From
02/09/2002 14:12:13
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
02/09/2002 12:24:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00695969
Message ID:
00695990
Views:
16
My assumtion is you are using local views. The reason for parameter views is to be able to change the where of a view. You can set a varible to filter active or not active. Example
lcActive = "Y"
lcName = "George"

Select * from customer where active = ?lcActive and name = ?lcName
To answere your other view question, a simple way to do this would be as follows,
llSupervisor = .t.

Select * from customer where active = ?lcActive and ;
iif(?llSupervisor,suppername = ?lcName,name = ?lcName)
>The view I have loaded to my form uses parameters to filter by name and if the record has a field set to active. Now I would like to put a function on the form to view a record that has the field set to inactive. How is this done?
Previous
Reply
Map
View

Click here to load this message in the networking platform