Welcome! Log In Create A New Profile

Advanced

How to change the directory of an acces database in the executable

Posted by Pluus.pcs.crosspost 
Pluus.pcs.crosspost
How to change the directory of an acces database in the executable
June 12, 2009 12:59PM
In the "analyse" the databse is on a certain location and directory, But for the executable the path where the database is located is different ( it reads the loaction from the registry)
How van i change the databse ath to this new diectory?

I tried Hsubstrep even with a hard coded path but when the system wants to ue the data it comes with an error message that it can not find the data ( on the location as defined in the "analyse")


Reslecture= RegistreLit("HKEY_LOCAL_MACHINE\SOFTWARE\RinDepenses\databasepad","dbpad", ResExécute)
// HSubstRep("*",ResLecture)
SI HSubstRep("d:\projets\depenses\depense2000.mdb","C:\program files\depenses\dat\depense2000.dat") = Vrai ALORS
Info("Vous allez travailler sur les fichiers présents"+...
"dans le répertoire : " + Reslecture)
SINON
Erreur(HErreur)
FIN

How to solve this problem?????

Message forwarded from pcsoft.us.windev
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: