Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - VIEW does not change with CREATE SQL VIEW
Message
De
01/04/1997 08:48:30
 
 
À
31/03/1997 17:01:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00026243
Message ID:
00026376
Vues:
27
>>my code..
>>CREATE SQL VIEW myview AS SELECT * FROM mytable WHERE &string
>>I get a selected group of records.
>>Then I BROWSE with BROWSE FIELDS
>>
>>The next time I do the same thing, I sould get another
>>selected group of records, but the computer uses
>>the previous VIEW? Why?
>
>Open your database that contains the view with the OPEN DATABASE command. Then type:
>
>? DBGETPROP("myview", "view", "sql")
>
>This will show you what the view SQL is stored as. It should show that it expanded your "&string" and stored it in the view. Therefore, each time you use the view, it will return the same data set. This is most likely not what you want.
>
>Try using parameterized views instead. If you post what "&string" contains, I can help you with the syntax.
>
>-Doug-

thanks for the tip. I found my problem. My ControlSource was set to
table->fld. It is now set to fld.

thanks again.
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform