erickamiller143
New Member
- Joined
- Nov 29, 2017
- Messages
- 17
I have a sql statement that my vba queries against itself. This has been working just fine and is properly set up. Since I updates my MS Office and now have 2016 Excel I am getting a Runtime Error ODBC driver does not support the requested properties.
Debugged Message from Immediate Window:
SELECT DISTINCT Len([GridData$].[WidthFT]), [GridData$].[WidthFT], [GridData$].[WidthIN] FROM [GridData$] WHERE [GridData$].[Model] = '123'
This is exactly correct so not sure how to get around whatever this update did. I would appreciate any advice.
Code:
strSQL = "SELECT DISTINCT Len([GridData$].[WidthFT]), [GridData$].[WidthFT], [GridData$].[WidthIN] FROM [GridData$] WHERE [GridData$].[Model] = '" & Model & "'"
Debug.Print strSQL
Width.Open strSQL, cnn, adOpenKeyset, adLockOptimistic
Debugged Message from Immediate Window:
SELECT DISTINCT Len([GridData$].[WidthFT]), [GridData$].[WidthFT], [GridData$].[WidthIN] FROM [GridData$] WHERE [GridData$].[Model] = '123'
This is exactly correct so not sure how to get around whatever this update did. I would appreciate any advice.