Jim Gordon
Active Member
- Joined
- Jul 22, 2011
- Messages
- 305
- Office Version
- 365
- 2021
- 2019
- 2016
- 2011
- Platform
- MacOS
Hi - Does anyone have a workaround for executing a VBA generated SQL command via ODBC on a Mac?
This works in Windows, but fails on a Mac. stSQL1 is a string variable having the text of the SQL query. The code fails on the With statement:
This works in Windows, but fails on a Mac. stSQL1 is a string variable having the text of the SQL query. The code fails on the With statement:
Code:
With ActiveWorkbook.Connections("ConnectionName").ODBCConnection
.CommandText = stSQL1
End With
Last edited: