<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'import excel to access database in vb6.00' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'import excel to access database in vb6.00' posted on the 'Access databases and VB' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2010 Programmers Heaven</copyright>
    <pubDate>Wed, 17 Mar 2010 16:43:15 -0700</pubDate>
    <lastBuildDate>Wed, 17 Mar 2010 16:43:15 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>import excel to access database in vb6.00</title>
      <link>http://www.programmersheaven.com/mb/AccessAndVB/409390/409390/import-excel-to-access-database-in-vb600/</link>
      <description>can anyone help me with the code.&lt;br /&gt;
am trying to import the content of an excel sheet to my access database using common dialog in vb6. i tried this code below but is not working ........&lt;br /&gt;
&lt;br /&gt;
Private Sub sLoadExcel()&lt;br /&gt;
    If CommonDialog1.FileName = "" Then Exit Sub&lt;br /&gt;
     Dim exc As Object&lt;br /&gt;
    Set exc = CreateObject("Excel.Application")&lt;br /&gt;
    exc.Workbooks.Add (CommonDialog1.FileName)&lt;br /&gt;
    exc.Visible = True&lt;br /&gt;
    &lt;br /&gt;
    'Dim i As Integer&lt;br /&gt;
    For i = 0 To exc.Row - 1&lt;br /&gt;
        With rstAS400&lt;br /&gt;
        .AddNew&lt;br /&gt;
            .Fields![STUDID] = exc.cells(i, 1)&lt;br /&gt;
            .Fields![FNAME] = exc.cells(i, 2)&lt;br /&gt;
            .Fields![LNAMSE] = exc.cells(i, 3)&lt;br /&gt;
            .Fields![SEX] = exc.cells(i, 4)&lt;br /&gt;
            .Fields![LDOB] = exc.cells(i, 5)&lt;br /&gt;
            .Update&lt;br /&gt;
            Next i&lt;br /&gt;
        End With&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
please help me out.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/AccessAndVB/409390/409390/import-excel-to-access-database-in-vb600/</guid>
      <pubDate>Mon, 16 Nov 2009 11:16:43 -0700</pubDate>
      <category>Access databases and VB</category>
    </item>
  </channel>
</rss>