Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AutoOpen Tables?
Message
De
24/08/1998 13:21:37
Rick Fitch
Advanced Technology Laboratories
Bothell, Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00128906
Message ID:
00129383
Vues:
21
>>I have a form with 2 tables (one remote view and one table, both in the database and data environment), 2 pages on a pageform, a grid on each page (one for each table). With AutoOpenTables .t., I find that the view and the table are opened and another instance of the table (alias "C") which is being accessed when I select the second grid.
>>If I turn off AutoOpenTables and use the tables in the form init method, the second grid accesses the table properly without the extra instance. ????? Any ideas why this extra instane appears?
>>
>
>As for the second instance of the table, is it possible you may have used a grid builder and now have a 2nd instance of the table in the DE? This happens to me frequently. Also, if you are not using a private DataSession, you are opening tables/views in a default DS where other tables may already be open.

>I found the cause of the second instance of the table. I had the recordsource type set to [table]. I changed it to [alias] and now it uses the table which is already open.
Thanks
Rick Fitch
Advanced Technology Labs I.S. Dept
rfitch@corp.atl.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform