Hi. I am trying to import from an SQL database that I have limited access to. It's a replicated database and we are allowed to take data from it and put into excel to manipulate or research etc.
The error is:
Screenshot 2021-05-14 161939.png
The last line above is what is highlighted by the debugger. Hovering the cursor over the first part will popup the line. I've attached screenshots of the error and the debug clue.
Screenshot 2021-05-14 162136.pngThen it continues.
I'm not a programmer but I'm ok at learning and reading and adapting. I don't see any obvious errors. I know the sql will run without the VBA modifications on the companies sql server. I know all the calls and such work.
I tried pasting the code in between the code and /code bracket tags and on previewing it said I was blocked for an sql injection. If someone can tell me what I did wrong i will be happy to post the code for review.
Bookmarks