ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CopyFromRecordset method (https://www.excelbanter.com/excel-programming/392278-copyfromrecordset-method.html)

Guy Cohen[_3_]

CopyFromRecordset method
 
Hi all,

I use vb6+excel 2k3 + adodb.
I am trying to fill an excel sheet with data from a recordset, by using
CopyFromRecordset.

My problem is that the RS contains a date formatted like date + time and in
the excel sheet I see only the date part :(

Please advise!!
TIA
Guy



Guy Cohen[_3_]

CopyFromRecordset method
 
Hi

I tried to format (dd/mm/yyyy hh:mm:ss) the columns after filling the data
and it is ok now...

HTH
Guy
;)


"Guy Cohen" wrote:

Hi all,

I use vb6+excel 2k3 + adodb.
I am trying to fill an excel sheet with data from a recordset, by using
CopyFromRecordset.

My problem is that the RS contains a date formatted like date + time and in
the excel sheet I see only the date part :(

Please advise!!
TIA
Guy




All times are GMT +1. The time now is 11:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com