Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default ODBC imports numbers as text

When I use ODBC to import data into Excel, all numbers come through with a
leading apostrophe so that Excel sees them as text.
e..g INSERT INTO [Sheet1$] VALUES (10) will come into Excel as '10
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default ODBC imports numbers as text

Ooops .. Sorry I forgot to state my question... how do I stop numbers
appearing as text?
Thanks!

"LarryPH" wrote:

When I use ODBC to import data into Excel, all numbers come through with a
leading apostrophe so that Excel sees them as text.
e..g INSERT INTO [Sheet1$] VALUES (10) will come into Excel as '10

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default ODBC imports numbers as text

ODBC likes to use strings (text) for its output because text is safe. Any
number chan be shown as text but text can not necessarily be converted to a
number. That having been said so long as you know there are a couple of
things you can do. You cna use a macro to convert the strings or in a column
next to the text use the formula =value(A1)...

HTH

"LarryPH" wrote:

Ooops .. Sorry I forgot to state my question... how do I stop numbers
appearing as text?
Thanks!

"LarryPH" wrote:

When I use ODBC to import data into Excel, all numbers come through with a
leading apostrophe so that Excel sees them as text.
e..g INSERT INTO [Sheet1$] VALUES (10) will come into Excel as '10

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default ODBC imports numbers as text


LarryPH wrote:
how do I stop numbers
appearing as text?


Although written from the opposite perspective, there may be something
of use he

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

Jamie.

--

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
truncation with imports via html jvblue Excel Worksheet Functions 0 September 23rd 08 10:03 PM
Data Imports incorrectly Mike H Excel Discussion (Misc queries) 1 August 1st 07 11:42 AM
Can delimited text file imports be extracted to a single column i. JROD Excel Discussion (Misc queries) 1 April 1st 05 05:57 AM
Imports No Name Excel Programming 0 May 5th 04 04:04 PM
Updating Excel imports John Hipskind Excel Programming 1 August 2nd 03 03:21 PM


All times are GMT +1. The time now is 05:06 PM.

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

About Us

"It's about Microsoft Excel"