LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default .net, excel, extended properties and dbnull

I have a column of data that is suppose to have decimals
in it. I am trying to trap for when the user puts
something else in there like text. When I run my tests,
I get dbNulls for the value instead of the text.

I've seen other postings for this and have added extended
properties using IMEX=1. Still get dbNulls. Any other
ideas? Here is my connection string:

string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + saveLocation + ";Extended Properties='Excel
8.0;IMEX=1'";

(Also tried this with double quotes around the extended
properties)

Using Windows XP with ALL the latest patches. Have ALL
the JET 3.5, 4.0 drivers WITH service patches.

..NET is 2003(ADO) using OLEDB connection.

Thanks
 
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
How do I perform extended calculations in a Pivot Table in Excel 2 learnlearn52 Excel Discussion (Misc queries) 4 May 20th 09 11:58 PM
excel extended text printing beussg Excel Discussion (Misc queries) 1 December 19th 08 08:11 PM
How to open two excel files to view on extended desktop CalvinEye Excel Discussion (Misc queries) 3 November 26th 06 05:52 AM
Excel extended desktop options LHAYES Excel Worksheet Functions 1 November 16th 06 02:44 PM
ASCII extended set is different in Excel, than MS's Website? RSA72 Excel Worksheet Functions 4 September 16th 05 07:03 AM


All times are GMT +1. The time now is 12:05 AM.

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"