Inventor 22 VBA DB Connection not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a DB connection in VBA in Inventor 2022 to a mysql server.
The same code works in Inventor 2021.
I get following error message (in german, translation below the image), Error happens at the line : "conn.Open ..."
Runtime error 'number ...'
Due to system error 127: The specified procedure was not found, (for path see image above) the specified driver could not be loaded.
I've reduced my code to the absolut minimum for simplicity:
Sub DB_()
Dim conn As Object
Set conn = CreateObject("ADODB.Connection")
conn.Open "Driver={MySQL ODBC 8.0 UNICODE Driver};Server=SERVERADDRESS;Database=DBNAME;User=INSERTUSERNAME;Password=INSERTPASSWORD;Option=3;"
End Sub
As already said the same code works in Inventor 2021 -> connectionstring is working. (I've also tried with inserting the connection data into the windows "ODBC Data Sources" which also works in Inventor 2021 but not in Inventor 2022)
Reference are set right as far as i know, at least they work in Inventor 2021:
I've already tried it on two Win10 PCs both running 10.0.19034
If there is any information I can add or steps for further troubleshooting, please let me know.