return multiple results from stored proc

S

s99999999s2003

hi

i have a stored proc with multiple select statements in it.
How can i successfully get these results into excel spreadsheet using
ADODB
I have tried

sql = "exec sp_proc "
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Open "DSN=" & DSN & ";Database=" & DB & ";UID=" _
& User & ";PWD=" & Password

rs.Open sql, con

but after that i am stuck. thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top