Start copying an access recordset starting with the next column

G

gab1972

I am bringing information from a recordset into Excel. I want to
start copying the recordset data starting with column two. Column one
is my primary key identifier and I don't want that. I'm thinking it
has something to do with .Fields???

'Copy the matched recordset into the worksheet starting at column "AN"
With wsSheet1
.Cells(2, 40).CopyFromRecordset rs2.Fields(2,?????) <----
this is where I am unsure
End With
'Close connections with permit_life
rs2.Close
 

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