Here is what I'm trying to do in VBA:
query = "Select * from h8888.MaxRate"
Set ado_conn = New ADODB.Connectio n
ado_conn.Connec tionString = "ODBC;DRIVER=SQ L Server;" & "DSN=" & dsn & ";" & Db & ";" & uid
ado_conn.Open
Set ado_rs = New ADODB.Recordset
Set xlSht = ThisWorkbook.Sh eets("Rawdata")...
User Profile
Collapse
-
accessing a SQL View from VBA
Hello,
I am trying to access the results of a sql view from VBA. When trying to query the results of the view through VBA I get a "Object not found" error. I'm able to query tables, but have difficulty accessing views. Not well versed in SQL but I understand that Views seem to be virtual tables, however I am not sure why I am unable to query. Any suggestions much appreciated. Thanks in advance.
No activity results to display
Show More
Leave a comment: