Hello Everyone!
Forgive me if this has been addressed, but i couldn't seem to locate what i was looking for when i searched.
I am developing a database that has various e-mail functions, and the reference is causing problems whenever i push out an update to my users as i have a newer version of office than they do. I have outlook 11 and they all have outlook 10
So my goal was to have some code on a splash screen that would check their version of office and corect the references if necessary.
I found this code which would remove a reference
This works great on my machine, it removes the reference. However, when i run this on the users machine it gives me an error loading the dll. I have a feeling that this is because the reference is already missing, so it can't remove something it doesn't know it has.
I can't add the reference required because it has the same name as the missing one, so i need to be able to uncheck the missing reference via code before i can check the correct one.
I found another thread that was a link to a knowledgebase article, but it got me no where.
Does anyone know a way to do this?
Thank You,
Forgive me if this has been addressed, but i couldn't seem to locate what i was looking for when i searched.
I am developing a database that has various e-mail functions, and the reference is causing problems whenever i push out an update to my users as i have a newer version of office than they do. I have outlook 11 and they all have outlook 10
So my goal was to have some code on a splash screen that would check their version of office and corect the references if necessary.
I found this code which would remove a reference
Code:
strname = "Outlook"
Set ref = Access.References(strname)
Access.References.Remove ref
Set ref = Nothing
This works great on my machine, it removes the reference. However, when i run this on the users machine it gives me an error loading the dll. I have a feeling that this is because the reference is already missing, so it can't remove something it doesn't know it has.
I can't add the reference required because it has the same name as the missing one, so i need to be able to uncheck the missing reference via code before i can check the correct one.
I found another thread that was a link to a knowledgebase article, but it got me no where.
Does anyone know a way to do this?
Thank You,