I don\'t really understand what has happened here. I\'m using Excel VBA to connect to a SQL Server Express database and return an ADO Recordset. I had it working initially, but
This is a bit long for a comment so I'll put it here as a possible answer. Please try:
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = conn
.LockType = adLockOptimistic
.CursorLocation = adUseServer
.CursorType = adOpenForwardOnly
.Open "SET NOCOUNT ON"
End With
rs.Open Cmd, , , , adCmdStoredProc
MsgBox ("Success! " & rs.RecordCount & " Records Returned!")