I have the following Python 2.7 code that works perfectly on a Windows 7 machine:
from comtypes.client import CreateObject
app = CreateObject('Access.Application')
from comtypes.gen import Access
DBEngine = app.DBEngine
On two others (Windows 7 and Windows 10) with MS Access 365 installed (latest version), I get the following error:
_ctypes.COMError: (-2147312566, 'Erreur lors du chargement de la biblioth\xe8que/DLL du type.', (None, None, None, 0, None))
(Meaning "Error loading DLL library)
I assume it's a DLL issue. Reinstalling Office didn't solve it. Has anyone already met that issue? Otherwise, what would be the general method to find the problem/fix it?