D
DudgeonousTweet
Open Access 2007 and save the blank database to the desktop. Rename it
mydatabase.accdb, and open it again and add one blank form, rename it
FirstStart. Go to the Visual Basic Editor and add the code:
Private Sub Form_Open(Cancel As Integer)
Application.Quit
End Sub
to the Microsoft Office Class Object Form_FirstStart.
Then go to Access Options and set up the program to display the form
FirstStart when the database is opened. Then exit Access and observe this
behavior:
When the icon for this accdb file is "double clicked", Vista throws the
"Windows cannot find this file..." error. When the icon for this accdb file
is right clicked and "Open" is selected, Vista again throws the "Windows
cannot find this file ..." error. When the icon for this accdb file is right
clicked and "Open With" is selected, and then Access 2007 is selected, the
file opens in Access and closes normally.
No amount of sleeping before or after the Quit has any influence on the
behavior. However, this code:
Private Sub Form_Open(Cancel As Integer)
MsgBox "Stop"
Application.Quit
End Sub
will open the file normally, throw up the MsgBox with the "Stop" string, and
will close normally when "OK" is selected.
This worked on Access 2003 on Windows XP.
This is rock solid reproducible (on my Lenovo T400). It fails the same way
when Vista comes up in a "clean boot".
This fails the same way when Access 2007 is operating on an mdb file in Vista.
Is this a known bug? If so could someone please direct me to the discussion
of this?
There is a lot of chatter on the web about this error. There is software
that can be downloaded. There are registry hacks. There are software
re-registrations. There are other things. If this is a bug, would someone
please say so. It may reduce the pressure on people to believe in a
misdiagnosis and do bad things to their systems.
Thank you.
mydatabase.accdb, and open it again and add one blank form, rename it
FirstStart. Go to the Visual Basic Editor and add the code:
Private Sub Form_Open(Cancel As Integer)
Application.Quit
End Sub
to the Microsoft Office Class Object Form_FirstStart.
Then go to Access Options and set up the program to display the form
FirstStart when the database is opened. Then exit Access and observe this
behavior:
When the icon for this accdb file is "double clicked", Vista throws the
"Windows cannot find this file..." error. When the icon for this accdb file
is right clicked and "Open" is selected, Vista again throws the "Windows
cannot find this file ..." error. When the icon for this accdb file is right
clicked and "Open With" is selected, and then Access 2007 is selected, the
file opens in Access and closes normally.
No amount of sleeping before or after the Quit has any influence on the
behavior. However, this code:
Private Sub Form_Open(Cancel As Integer)
MsgBox "Stop"
Application.Quit
End Sub
will open the file normally, throw up the MsgBox with the "Stop" string, and
will close normally when "OK" is selected.
This worked on Access 2003 on Windows XP.
This is rock solid reproducible (on my Lenovo T400). It fails the same way
when Vista comes up in a "clean boot".
This fails the same way when Access 2007 is operating on an mdb file in Vista.
Is this a known bug? If so could someone please direct me to the discussion
of this?
There is a lot of chatter on the web about this error. There is software
that can be downloaded. There are registry hacks. There are software
re-registrations. There are other things. If this is a bug, would someone
please say so. It may reduce the pressure on people to believe in a
misdiagnosis and do bad things to their systems.
Thank you.