Tezcatlipoca
Registered User.
- Local time
- Today, 14:07
- Joined
- Mar 13, 2003
- Messages
- 246
Hi All,
I'm not sure if this can be done or not, but I have a database project that includes - via VB - some file manipulation in the background.
This all works perfectly, but there is a problem if the file to be manipulated is currently open by a user other than the one trying to make the change in the database.
When you open up a shared file, such as a Word document, in a network you are informed if another user has it open and your copy opens in Read Only.
Is it possible to replicate that with VBA inside Access? So, for example, I have a button on my database that allows authorised users to delete a file that exists in a shared folder. Is it possible to introduce code that checks if that file is already being accessed, then returns some value to Access so I cna build the appropriate error message into the database?
I'm not sure if this can be done or not, but I have a database project that includes - via VB - some file manipulation in the background.
This all works perfectly, but there is a problem if the file to be manipulated is currently open by a user other than the one trying to make the change in the database.
When you open up a shared file, such as a Word document, in a network you are informed if another user has it open and your copy opens in Read Only.
Is it possible to replicate that with VBA inside Access? So, for example, I have a button on my database that allows authorised users to delete a file that exists in a shared folder. Is it possible to introduce code that checks if that file is already being accessed, then returns some value to Access so I cna build the appropriate error message into the database?