Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized Views
Message
De
09/04/2006 00:31:08
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
 
 
À
08/04/2006 23:48:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01111735
Message ID:
01111738
Vues:
13
>Change the view definition to be
>
>personid >= ?personid1 and personid <= ?personid2
>and
>year >= ?year1 and year <= ?year2
>
>
>To retrieve all the records, make personid1 and year1 smaller than the lowest possible values and personid2 and year2 bigger than the largest possible values.
>
>To retrieve for a specific person/year combination, set personid1 the same as personid2 and year1 the same as year2.
>
>>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

Cool. I'll try this... Thank you Craig.
Thanks in advance or I hope this helps!

[STS]
:>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform