- Local time
- Today, 06:39
- Joined
- Feb 19, 2013
- Messages
- 17,398
When developing, I sometimes think 'copy the db before running this routine in case something goes wrong'.
Up until a few days ago, this worked fine, open win explorer, copy and paste the db - whilst I'm still in it. no problem.
But now I get the message
'this action cannot be completed because the file is open in Microsoft Access'
Further, I've noticed the .laccdb file is not created when the db is opened but don't know whether this is connected or not, but is also of concern.
Also if I use something like
Shell "cmd /c copy """ & CurrentDb.Name & """ """ & tmpName & ""
this also no longer works - no error is generated and no copy file either. I use this code rather than filecopy because filecopy does generate an error if the file is open.
The last time I know this worked OK was 18 days ago. Since then I have played around with
a) opening FE db's exclusively to see if there was a performance improvement (none that I could detect, think it is more to do with backend performance which can't be exclusive in a multiuser environment)
b) compact on close - for front end to free up space from temp tables - another performance enhancer review, having them local rather than in a local temp db (again no discernible improvement)
in both cases, the appropriate settings have been returned to previous values
Does anyone have any thoughts?
Up until a few days ago, this worked fine, open win explorer, copy and paste the db - whilst I'm still in it. no problem.
But now I get the message
'this action cannot be completed because the file is open in Microsoft Access'
Further, I've noticed the .laccdb file is not created when the db is opened but don't know whether this is connected or not, but is also of concern.
Also if I use something like
Shell "cmd /c copy """ & CurrentDb.Name & """ """ & tmpName & ""
this also no longer works - no error is generated and no copy file either. I use this code rather than filecopy because filecopy does generate an error if the file is open.
The last time I know this worked OK was 18 days ago. Since then I have played around with
a) opening FE db's exclusively to see if there was a performance improvement (none that I could detect, think it is more to do with backend performance which can't be exclusive in a multiuser environment)
b) compact on close - for front end to free up space from temp tables - another performance enhancer review, having them local rather than in a local temp db (again no discernible improvement)
in both cases, the appropriate settings have been returned to previous values
Does anyone have any thoughts?