K
KA Spencer
I have several Access applications that run satisfactorily on all x32
versions of Windows and with Access XP (2002), Access 2003, and Access 2007
all installed simultaneously (but in different directories of course). (I am
ignoring the important behavioural differences of Access 2007 from the
others, as they're separate issues).
However, when I install Access 2003 and Access 2007 (in different
directories) on Vista x64 my applications fail with the message:
"The expression On Open you entered as the event property setting produced
the error: Object or class does not support the set of events."
The Help option advises the I should delete the referencing object, but that
would destroy my application!
The application initially calls functions in the User32 library (e.g.
"FindWindow", "SetWindowText", "SetWindowPosition" etc etc) but they all pass
through debug without a problem. Therefore the issue seems to be in the
Form_Activate or Form_Open event in the startup form, but the code there is
absolutely simple.
On investigation I have noted that Access 2003 is in fact referencing the
"Microsoft Access 12.00 Object Library" MSACC.OLB in the Access 2007
directory. However I cannot remove this reference as I am advised that it is
in use. And I cannot add the "Microsoft Access 11.0 Object Library" MSACC.OLB
from the Access 2003 directory to the references as nothing happens when I
select it.
So,
1. Am I right in suspecting the Access 2007 Object Library as the culprit?
2. If so how do I change the reference?
3. If not, any other ideas?
Thanks alot,
Kenneth Spencer
versions of Windows and with Access XP (2002), Access 2003, and Access 2007
all installed simultaneously (but in different directories of course). (I am
ignoring the important behavioural differences of Access 2007 from the
others, as they're separate issues).
However, when I install Access 2003 and Access 2007 (in different
directories) on Vista x64 my applications fail with the message:
"The expression On Open you entered as the event property setting produced
the error: Object or class does not support the set of events."
The Help option advises the I should delete the referencing object, but that
would destroy my application!
The application initially calls functions in the User32 library (e.g.
"FindWindow", "SetWindowText", "SetWindowPosition" etc etc) but they all pass
through debug without a problem. Therefore the issue seems to be in the
Form_Activate or Form_Open event in the startup form, but the code there is
absolutely simple.
On investigation I have noted that Access 2003 is in fact referencing the
"Microsoft Access 12.00 Object Library" MSACC.OLB in the Access 2007
directory. However I cannot remove this reference as I am advised that it is
in use. And I cannot add the "Microsoft Access 11.0 Object Library" MSACC.OLB
from the Access 2003 directory to the references as nothing happens when I
select it.
So,
1. Am I right in suspecting the Access 2007 Object Library as the culprit?
2. If so how do I change the reference?
3. If not, any other ideas?
Thanks alot,
Kenneth Spencer