<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DAO/ADO Returning Null on Excel File Integers in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303413#M65156</link>
    <description>I'm finding that if I connect to a XLS file with DAO or ADO that&lt;BR /&gt;
certain cells will return null when it should contain an integer. &lt;BR /&gt;
I've tried formatting the cells as text in Excel but that don't help. &lt;BR /&gt;
The null shows up as a variant in the fetched data collection even&lt;BR /&gt;
before I attempt to assign it to a variable.&lt;BR /&gt;
&lt;BR /&gt;
What does help is prefixing each integer with an ' in Excel.  But&lt;BR /&gt;
thats obviously not a practical thing to do.&lt;BR /&gt;
&lt;BR /&gt;
Anyone ever run across this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
    <pubDate>Tue, 11 Mar 2003 12:55:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-03-11T12:55:24Z</dc:date>
    <item>
      <title>DAO/ADO Returning Null on Excel File Integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303413#M65156</link>
      <description>I'm finding that if I connect to a XLS file with DAO or ADO that&lt;BR /&gt;
certain cells will return null when it should contain an integer. &lt;BR /&gt;
I've tried formatting the cells as text in Excel but that don't help. &lt;BR /&gt;
The null shows up as a variant in the fetched data collection even&lt;BR /&gt;
before I attempt to assign it to a variable.&lt;BR /&gt;
&lt;BR /&gt;
What does help is prefixing each integer with an ' in Excel.  But&lt;BR /&gt;
thats obviously not a practical thing to do.&lt;BR /&gt;
&lt;BR /&gt;
Anyone ever run across this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Tue, 11 Mar 2003 12:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303413#M65156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-11T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAO/ADO Returning Null on Excel File Integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303414#M65157</link>
      <description>I haven't seen that, but I haven't done much Excel work.&lt;BR /&gt;
&lt;BR /&gt;
ADO and DAO ignore any data type format assignments in Excel.  The first &lt;BR /&gt;
8 rows are scanned to try to figure out the data type.  This can cause &lt;BR /&gt;
problems.&lt;BR /&gt;
&lt;BR /&gt;
&lt;&gt; has &lt;BR /&gt;
lots of useful information.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
jrf&lt;BR /&gt;
Member of the Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
Please do not email questions unless you wish to hire my services&lt;BR /&gt;
&lt;BR /&gt;
In article &amp;lt;3E6E4D3C.E51FC2AD@dotsoft.com&amp;gt;, Terry W. Dotson wrote:&lt;BR /&gt;
&amp;gt; I'm finding that if I connect to a XLS file with DAO or ADO that&lt;BR /&gt;
&amp;gt; certain cells will return null when it should contain an integer. &lt;BR /&gt;
&amp;gt; I've tried formatting the cells as text in Excel but that don't help. &lt;BR /&gt;
&amp;gt; The null shows up as a variant in the fetched data collection even&lt;BR /&gt;
&amp;gt; before I attempt to assign it to a variable.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; What does help is prefixing each integer with an ' in Excel.  But&lt;BR /&gt;
&amp;gt; thats obviously not a practical thing to do.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Anyone ever run across this?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks in advance.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Terry&lt;BR /&gt;
&amp;gt;&lt;/&gt;</description>
      <pubDate>Wed, 12 Mar 2003 04:13:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303414#M65157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-12T04:13:50Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303415#M65158</link>
      <description>Jon Fleming wrote:&lt;BR /&gt;
 &lt;BR /&gt;
&amp;gt; ADO and DAO ignore any data type format assignments in Excel.  The first&lt;BR /&gt;
&amp;gt; 8 rows are scanned to try to figure out the data type.  This can cause&lt;BR /&gt;
&amp;gt; problems.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;&gt; has&lt;BR /&gt;
&amp;gt; lots of useful information.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the pointer, as per this topic (referenced in the above)&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q194124&lt;BR /&gt;
&lt;BR /&gt;
... adding IMEX=1; to the connect string solved the problem, since&lt;BR /&gt;
luckily I have a read only need.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again!&lt;BR /&gt;
&lt;BR /&gt;
Terry&lt;/&gt;</description>
      <pubDate>Thu, 13 Mar 2003 08:34:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/dao-ado-returning-null-on-excel-file-integers/m-p/303415#M65158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-13T08:34:54Z</dc:date>
    </item>
  </channel>
</rss>

