hi there,
i looked around the internet and this forum to find a solution but was unable to do so. so here is the question:
i make this SQL based recordset and then want to copy specific field data into a specific excel column ( say for example i have this field called Sender_Name in the recordset, i want to copy all names from this field into a specific column in excel).
i tried :
xlws.columns(1)=rst.fields(0)
where xlst would be the excel worksheet i am copying to, and the rst = recordset. but the code would return only the first record in the field and copy all that in column one of excel all the way...say the first record in the recordset in field(0) had the value = "john"...it would only copy John to column 1 but not the rest of the names....
any help would be appreciated.
thank you
i looked around the internet and this forum to find a solution but was unable to do so. so here is the question:
i make this SQL based recordset and then want to copy specific field data into a specific excel column ( say for example i have this field called Sender_Name in the recordset, i want to copy all names from this field into a specific column in excel).
i tried :
xlws.columns(1)=rst.fields(0)
where xlst would be the excel worksheet i am copying to, and the rst = recordset. but the code would return only the first record in the field and copy all that in column one of excel all the way...say the first record in the recordset in field(0) had the value = "john"...it would only copy John to column 1 but not the rest of the names....
any help would be appreciated.
thank you
