>HI!
>I have three identical databases with exact same tables. Lets say first is 'A', second 'B' and third 'C'. Initially DE was populated by tables from 'B'.
When I try to switch to 'A' or 'C' or even try to start in 'A' or 'C' I get an error saying, "File l:\...\..\B doesn't exist". I checked the procedure several
times which replaces the database name with currently open database, either being 'A' or 'C', and debugged it several times. The database names and
other properties are replaced without any problem but when VFP reloads DE by DE.Opentables() it gives me the error.
>Why are you trying to switch databases while the form is already instanciated? Is there a real world application for this?
Actually we will be moving the whole application to another location and I want to make sure we are looking at the correct database. As far as database switching is concerned, we have three databases and one is used for editing a record, other one keeps all the updated data and the last is keeping a history of all the revisions on a record. I am using the same form for switching between databases as all these have same tables in them.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement