Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have an ASP.NET (VB) routine that imports a lot of data from an Excel
spreadsheet into a OleDbDataAdapter, and then into a database table. The import has been working fine until now, but my latest spreadsheet has a column that can be either completely numeric or alphanumeric. As long as the first row contains alphanumeric everything is fine, but the latest spreadsheet I received contained completely numeric data in the first 10 rows. This caused some of the alphanumeric data to not be read in. I have been using IMEX=1 in my connection string which fixed this type of situation I had when I first started working on this project, but it doesn't seem to be working on this particular field. Any suggestions? Thanks, Amy Bolden |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I was able to solve my problem by putting HDR=No in the connection
string. Then I insert the header text as the first record for the field, thereby forcing Excel to make the field a string. This seems to work well, although it is a little goofy. Thanks, Amy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
unhide menu bar in excel - just disappeared | Setting up and Configuration of Excel | |||
Importing Excel file into Outlook Calendar | Excel Discussion (Misc queries) | |||
Importing Excel spreadsheets | Excel Discussion (Misc queries) | |||
Importing multiple Text files into Excel 2003 | Excel Discussion (Misc queries) |