robertsquestion
Technical User
Hi,
We are using a MS Access database (.mdb with .mdw security) that is stored at a central server. The persons that work in this database either have MS Access 2010 or MS Access 2016 installed.
If a user that has got MS Access 2016 installed opens the database, everything works fine.
But if a user that has got MS Access 2010 installed opens the database after that, this user gets following error message:
"Compile error: Can't find project or library"
At Tools/References we noticed the following entry:
"MISSING: Microsoft Outlook 16.0 object library"
If we uncheck this missing entry and check entry "Microsoft Outlook 14.0 object library", then it works fine again for the person that uses MS Access 2010.
But ofcourse we don't want to correct this all the time manually, we would like to have the database running without errors for both MS Access versions.
While googling about this issue, I found following article:
In the database, current VBA is indeed used:
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
I replaced that by:
Dim appOutLook As Object
Dim MailOutLook As Object
(and followed the other recommendations)
But unfortunately that did not solve it.
In a copy of the database I removed all VBA from the Forms and also removed a VBA module.
After that, we still get "MISSING: Microsoft Outlook 16.0 object library" if we switch from a 2016-user to a 2010-user.
Does anyone have an idea how to solve this?
Is there some other place in the database where I need to do changes?
Thanks in advance for your help!
Regards,
Robert
We are using a MS Access database (.mdb with .mdw security) that is stored at a central server. The persons that work in this database either have MS Access 2010 or MS Access 2016 installed.
If a user that has got MS Access 2016 installed opens the database, everything works fine.
But if a user that has got MS Access 2010 installed opens the database after that, this user gets following error message:
"Compile error: Can't find project or library"
At Tools/References we noticed the following entry:
"MISSING: Microsoft Outlook 16.0 object library"
If we uncheck this missing entry and check entry "Microsoft Outlook 14.0 object library", then it works fine again for the person that uses MS Access 2010.
But ofcourse we don't want to correct this all the time manually, we would like to have the database running without errors for both MS Access versions.
While googling about this issue, I found following article:
In the database, current VBA is indeed used:
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
I replaced that by:
Dim appOutLook As Object
Dim MailOutLook As Object
(and followed the other recommendations)
But unfortunately that did not solve it.
In a copy of the database I removed all VBA from the Forms and also removed a VBA module.
After that, we still get "MISSING: Microsoft Outlook 16.0 object library" if we switch from a 2016-user to a 2010-user.
Does anyone have an idea how to solve this?
Is there some other place in the database where I need to do changes?
Thanks in advance for your help!
Regards,
Robert