A
Alex A
Hey everyone, I just found this board. I wrote some VBA
to query my SQL Server into a recordset, but I don't know
how to display that recordset on my Excel spreadsheet.
The recordset is full, so how do I put that into Excel?
Here is the Last few lines of my code:
'Create Recordset
rstIVSLH.CursorType = adOpenForwardOnly
rstIVSLH.LockType = adLockReadOnly
rstIVSLH.CursorLocation = adUseClient
Set rstIVSLH = conSQLSERVERConnection.Execute(strSQL)
'ActiveSheet.Rows(3) = rstIVSLH.Fields ???????????????????
End Sub
to query my SQL Server into a recordset, but I don't know
how to display that recordset on my Excel spreadsheet.
The recordset is full, so how do I put that into Excel?
Here is the Last few lines of my code:
'Create Recordset
rstIVSLH.CursorType = adOpenForwardOnly
rstIVSLH.LockType = adLockReadOnly
rstIVSLH.CursorLocation = adUseClient
Set rstIVSLH = conSQLSERVERConnection.Execute(strSQL)
'ActiveSheet.Rows(3) = rstIVSLH.Fields ???????????????????
End Sub