B
Bill Manville
Access 2002 SP3 on Windows XP-Pro. All critical updates.
Access 2002-format single user database, split front+back ends.
One instance of Access running.
No relevant LDB files before or after run.
AutoExec macro opens a form named Menu (just a switchboard with buttons
on it).
After closing the Menu form I can't make design changes in the
database:
"You do not have exclusive access to the database at this time...."
Opening with shift-key held down enables me to make design changes but
if I then open and close the Menu form the problem recurs.
By commenting out code in Form_Open I found the problem occurred if and
only if the following was executed:
Dim DB As DAO.Database
Set DB=CurrentDB
Set DB=Nothing
(originally there was some useful code in there!)
I have tried all of the following, without success:
- Tools/Database Utilities/Compact and Repair
- Help/Detect and Repair
- /decompile switch
- Make a new database and copy everything into it (but copying the VBA
code separately)
- Tools / Options / Advanced /Default Open Mode=Shared (or =Exclusive)
(I do have Access 2000 and 2003 installed on the same machine)
Any suggestions?
Am at wits' end.
Bill Manville
(Excel MVP)
Access 2002-format single user database, split front+back ends.
One instance of Access running.
No relevant LDB files before or after run.
AutoExec macro opens a form named Menu (just a switchboard with buttons
on it).
After closing the Menu form I can't make design changes in the
database:
"You do not have exclusive access to the database at this time...."
Opening with shift-key held down enables me to make design changes but
if I then open and close the Menu form the problem recurs.
By commenting out code in Form_Open I found the problem occurred if and
only if the following was executed:
Dim DB As DAO.Database
Set DB=CurrentDB
Set DB=Nothing
(originally there was some useful code in there!)
I have tried all of the following, without success:
- Tools/Database Utilities/Compact and Repair
- Help/Detect and Repair
- /decompile switch
- Make a new database and copy everything into it (but copying the VBA
code separately)
- Tools / Options / Advanced /Default Open Mode=Shared (or =Exclusive)
(I do have Access 2000 and 2003 installed on the same machine)
Any suggestions?
Am at wits' end.
Bill Manville
(Excel MVP)