Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized Views
Message
De
08/04/2006 23:48:18
 
 
À
08/04/2006 23:00:57
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
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:
01111737
Vues:
11
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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform