Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized Views
Message
De
09/04/2006 03:32:31
 
 
À
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:
01111744
Vues:
20
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform