Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create sql view with thisform property
Message
De
26/04/2000 18:38:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00363690
Message ID:
00363840
Vues:
14
>Can I use the following sql statement to create sql view:
>'CREATE SQL VIEW MYVIEW AS SELECT * FROM MYTBL WHERE MYFIELD=Thisform.value'

Nope, do this instead:

CREATE SQL VIEW MYVIEW AS SELECT * FROM MYTBL WHERE MYFIELD= ?lcValue

Then, before you requery() or use the view, you can define lcValue to whateer you'd like. If it doesn't exist, it won't blow either, but it will pop up and ask you for a value.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform