Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Multiples databases from a single form
Message
From
13/01/1999 11:20:58
 
 
To
13/01/1999 11:14:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00175474
Message ID:
00175488
Views:
31
Yes, it's actually just an extension of known BeforeOpenTables code.

>Hi Ed ---
>
>Sounds reasonable to me. Someone once told me that VFP gets "confused" if you have multiple open databases and tables where the table names/structures are the same.
>
>
>>>Hi evereyone!
>>>I have a form where I have three buttons so that I can access info from separate databases each time. The problem is how can I open each database for each click and close the ones not in use. Do i need to add all the tables from all databses to the data environment. Actually these databses have same tables, stucture-wise and name-wise, but databse names are different.
>>>PLEASE HELP!
>>
>>I think it would be enough to change database (CLOSE/OPEN DATABASE) and then fire:
>>cDbcpathname=dbc()
>>Thisform.DataEnvironment.CloseTables
>>Thisform.Setall("Database",cDbcpathname,"Cursor")
>>Thisform.DataEnvironment.OpenTables
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform