When running the full macro (not shown), it delivers an error that '=' incorrect syntax.
The code is trying to extract data from SQL server into Excel
Suggestions on syntax for parameter query to work?
The code is trying to extract data from SQL server into Excel
Code:
objMyCmd.CommandText = "SELECT BU, JobDesc FROM Budget27MI_map" _
& "WHERE BU =" & Worksheets("Sheet1").Range("A1").Value
Comment