Forum Moderators: open
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
the strange thing is that my program was working, then all of a sudden this message is appearing and i cant solve it.
Ive looked on google groups and tried all they have said, including registering the OLE DB .dll's. Checking permissions etc. I have no passwords on the database, and im the only user using the database as its on my local machine (for testing)
Is there anything i havent tried?
thanks for any help
or you haven't explicitly closed the connection and the session still thinks it's open..
e.g.
' alway close connection and set recordset to nothing
objRS.close
set objRS=nothing
objConn.close
set objConn=nothing
if it's this your server may need a reboot to cut the connection first...
I do remember this happening to me a few years ago but can't
remember all the things I tried....
Try reposting the message in the Microsoft Forum, Sorry not to be more help
Suzy
It happens after you open the Access database. The only way I found to fix it, was to create another folder, for example "database1", copy the DB into it, than delete the folder were the DB was before. Now rename "database1" to "database" - assuming this is the name of the original folder.
Now go to Windows Explorer, find the folder, right click on it, click properties, then security tab > click Everyone > check full control > Apply
If anybody else knows an easier way, I'd love to know it.