Question : how do I get at data in a record set in excel vba 2003

I have the following code to get a record set how do I get at the rows and columns

excel 2003 vba
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Set C = CreateObject("ADODB.Connection")
C.CommandTimeout = 720

'go to address on next line to see address that is being passed through
C.Open "Driver={SQL Server};Server=1111.111.11.111.;Database=IRS 433f ;Uid=sa;password=*****;"

Set R = CreateObject("ADODB.RecordSet")
'parameters were given to me by client
R.Open "execute usp_v1", C
R.Open "execute usp_v1", C
If Not R.EOF Then

cells(1,"a) = R(0)

Answer : how do I get at data in a record set in excel vba 2003

You normally do not go to a particular row or column directly.
Normally, one would open and iterate through all the records in order until finished.
Please have a view of code in previous comment.

R("fieldname")
or
R(fieldindex)

gives you the column by field name or index (0-based)

R.movefirst, R.movenext moves the pointer to first or next in the recordset.
Random Solutions  
 
programming4us programming4us