Hi,
I am developing a vb6 application with an Access 2000 backend(ADO). I am using com objects and have a function that will backup the database and save it with the date appended to it name in a sepeerate folder (i.e db01022001.mdb). I am using a file scripting object and just the copy file method. When I run this code I get a 'permission denied' error and it wont allow me to copy the database. I have changed the properites on the databse to stop locking but it does not seem to work. Someone once told me that you can unlock the database in code but I could not find this solution. If you have any ideas all will be helpful.
Thanks Always
Faztech FAZTECH
I am developing a vb6 application with an Access 2000 backend(ADO). I am using com objects and have a function that will backup the database and save it with the date appended to it name in a sepeerate folder (i.e db01022001.mdb). I am using a file scripting object and just the copy file method. When I run this code I get a 'permission denied' error and it wont allow me to copy the database. I have changed the properites on the databse to stop locking but it does not seem to work. Someone once told me that you can unlock the database in code but I could not find this solution. If you have any ideas all will be helpful.
Thanks Always
Faztech FAZTECH