First off, thanks for the reply!
Probably like user AERRORS() in Error method, check if this error number comes out then show a messagebox stating this form will be unavailable for the time being?
>Contrary to what the help documentation says, error 2005 will arise when there is a problem opening up tables or views in the data environment of a form. I created the situation you created and got the following error message:
>
>The Error Number is '2005'.
>The Error messages are 'Error loading file - record number 5. FrmDocList_grid .Loading form or the data environment : Error loading the data environment. Table is in use'; and 'ERROR LOADING FILE - RECORD NUMBER 5. FRMDOCLIST_GRID .LOADING FORM OR THE DATA ENVIRONMENT : ERROR LOADING THE DATA ENVIRONMENT. TABLE IS IN USE'.
>
>You will have to avoid the situation that is causing you program to fail.
>
>Kevin
>
>
>
>
>Really is odd though... the four forms all were based on my dataentry form class... my app object runs a menu that has options to open those 4 forms. I then intentionally opened another VFP instance and opened the tables concerned exclusively. Now, when I go back to my original VFP instance and chose to run the form this error 2005 comes up.
>
>Let's say Form A opens Table A and so on. Everytime I open Table X exclusively in another instance, running Form X would generate 2005! IF I close Table X which was opened exclusively, Form X would then run OK...
Précédent
Suivant
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