Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default CopyfromRecordset


I have a workbook containing data. The first column has a reference
number.
The data in this column is of mixed type.

Example entries are B0BJ6Q3 and 4477785. The first 70 odd rows are text
and then they change to numeric. I believe that the ado recordset
assigns a datatype based on the first few rows.

However, why wont it insert the numeric as a text? It's driving me
nuts.
I get a perfect recordset apart from row 70 in the first column.

I've tried formatting in the original file the first column as text,
but to no avail.

Anyone got any good ideas?
Cheers,
Matt.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=522591

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default CopyfromRecordset

http://www.dicks-blog.com/archives/2...ed-data-types/

and

http://support.microsoft.com/default...b;en-us;257819
How To Use ADO with Excel Data from Visual Basic or VBA

--
Regards,
Tom Ogilvy


"MattShoreson" wrote:


I have a workbook containing data. The first column has a reference
number.
The data in this column is of mixed type.

Example entries are B0BJ6Q3 and 4477785. The first 70 odd rows are text
and then they change to numeric. I believe that the ado recordset
assigns a datatype based on the first few rows.

However, why wont it insert the numeric as a text? It's driving me
nuts.
I get a perfect recordset apart from row 70 in the first column.

I've tried formatting in the original file the first column as text,
but to no avail.

Anyone got any good ideas?
Cheers,
Matt.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=522591


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default CopyfromRecordset


cheers tom, much app.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=522591

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CopyFromRecordset Ernst Guckel[_4_] Excel Programming 3 May 1st 05 08:03 PM
CopyFromRecordset does nothing Hafeez Excel Programming 2 August 13th 04 07:20 PM
CopyFromRecordset for Oracle ? Rich[_16_] Excel Programming 2 July 19th 04 10:38 AM
CopyFromRecordset does nothing E Harris Excel Programming 5 January 8th 04 04:29 PM
Copyfromrecordset Bug ? news.btx.dtag.de Excel Programming 1 August 1st 03 07:44 PM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"