Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized Views
Message
From
09/04/2006 03:32:31
 
 
To
08/04/2006 23:00:57
Steve Summers
Pima County Superior Court
Tucson, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01111735
Message ID:
01111744
Views:
19
>I have a local view that uses an integer and a year to retreive training records. The integer is the personid and the year is for the training year. Is there a way I can send a parameter that will retrieve all the training records?
>The SQL where is as follows:
>WHERE personid = ?vwpersonid;
>AND yesr(class_date) = ?vwyear

add a logical allrecords variable
WHERE personid = ?vwpersonid AND yesr(class_date) = ?vwyear OR 1=?IIF(m.allrecords,1,0)
Previous
Reply
Map
View

Click here to load this message in the networking platform