<?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 Re: MS-ACCESS from VB.NET 2010 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846684#M62778</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;First of all thanks a lot. &amp;nbsp; This look like exactly what I need. &amp;nbsp;I am trying to get it to work but I have many things to learn.&lt;/P&gt;&lt;P&gt;Maybe I'll have some questions later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;John&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2010 07:17:52 GMT</pubDate>
    <dc:creator>OceanaPolynom</dc:creator>
    <dc:date>2010-12-08T07:17:52Z</dc:date>
    <item>
      <title>MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2845336#M62775</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I would like to see a code example of of how to connect, access, update, query an existing MS-ACCESS file from VB.NET&lt;/P&gt;&lt;P&gt;I don't need to show any of the data on a form or a grid control. &amp;nbsp;I only need to manipulate the data from inside VB.NET. &amp;nbsp;The results are to be drawn in AutoCad or written out as text files. &amp;nbsp;I couldn't find an answer by searching the site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 13:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2845336#M62775</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2010-12-07T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2845374#M62776</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pleaze look at this website. I'll think it will help you with your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.startvbdotnet.com/ado/msaccess.aspx" rel="nofollow" target="_blank"&gt;http://www.startvbdotnet.com/ado/msaccess.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is&amp;nbsp; a sample from that page using a console application to retrive records from an acces database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports System.Data.OleDb
Imports System.Console
Module Module1

Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader

Sub Main()
Try
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\emp.mdb;_
Persist Security Info=False")
cn.Open()
cmd = New OleDbCommand("select * from table1", cn)
dr = cmd.ExecuteReader
While dr.Read()
WriteLine(dr(0))
WriteLine(dr(1))
WriteLine(dr(2))
'writing to console
End While
Catch
End Try
dr.Close()
cn.Close()
End Sub

End Module &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Goodluck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Irvin&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 13:52:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2845374#M62776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T13:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2845462#M62777</link>
      <description>&lt;P&gt;Addition to Irvin's reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use 64-bit AutoCAD, then the code will not work inside AutoCAD at the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\emp.mdb;_&lt;BR /&gt;Persist Security Info=False")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;because Jet Engine (Jet driver) is only of 32-bit. If you have to access the database file from inside 64-bit AutoCAD, you have to download 64-bit MS Access DB Engine and install it. Be aware, though, if you use MS Office 2007/2010 32 bit with MS Acces included, you cannot install 64-bit MS Access DB Engine in the same computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if the Access DB is built on MS Access 2007 (*.accdb/*.accde), you cannot use Jet Engine either. You need to download MS Access DB Engine and change the connectionString in the above code accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 14:48:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2845462#M62777</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-12-07T14:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846684#M62778</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;First of all thanks a lot. &amp;nbsp; This look like exactly what I need. &amp;nbsp;I am trying to get it to work but I have many things to learn.&lt;/P&gt;&lt;P&gt;Maybe I'll have some questions later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;John&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2010 07:17:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846684#M62778</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2010-12-08T07:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846748#M62779</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am working in 32 bit, XP service pack 3, VS2010, MS-ACCESS file is 2003 ver. &amp;nbsp;Autocad is not an issue yet.&lt;/P&gt;&lt;P&gt;After looking at the site you mentioned I created a WindowsApplication, added a form, button and 3 textboxes.&lt;/P&gt;&lt;P&gt;I opened the project properties window and on the Compile tab changed the Target framework to .NET Framework 3.5&lt;/P&gt;&lt;P&gt;On the References tab I noticed that there is no reference to System.Data.OleDb. &amp;nbsp;I attempted to add a reference but couldn't find it in the Add Reference window.&lt;/P&gt;&lt;P&gt;Trying to build the code results in "end of statement expected on line 3." error. &amp;nbsp;Line 3 is:&amp;nbsp;Dim cn As OleDbConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports System.Data.OleDb&lt;BR /&gt;Public Class Form1 Inherits System.Windows.Forms.Form&lt;BR /&gt;Dim cn As OleDbConnection&lt;BR /&gt;Dim cmd As OleDbCommand&lt;BR /&gt;Dim dr As OleDbDataReader&lt;BR /&gt;Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;BR /&gt;Try&lt;BR /&gt;cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\emp.mdb;")&lt;BR /&gt;'provider to be used when working with access database&lt;BR /&gt;cn.Open()&lt;BR /&gt;cmd = New OleDbCommand("select * from table1", cn)&lt;BR /&gt;dr = cmd.ExecuteReader&lt;BR /&gt;While dr.Read()&lt;BR /&gt;TextBox1.Text = dr(0)&lt;BR /&gt;TextBox2.Text = dr(1)&lt;BR /&gt;TextBox3.Text = dr(2)&lt;BR /&gt;' loading data into TextBoxes by column index&lt;BR /&gt;End While&lt;BR /&gt;Catch&lt;BR /&gt;End Try&lt;BR /&gt;dr.Close()&lt;BR /&gt;cn.Close()&lt;BR /&gt;End Sub&lt;BR /&gt;End Class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2010 08:48:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846748#M62779</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2010-12-08T08:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846770#M62780</link>
      <description>&lt;P&gt;Please look here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/wkze6zky.aspx" rel="nofollow" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/wkze6zky.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Irvin&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:09:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2846770#M62780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-08T09:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2848208#M62781</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;After reading the page you linked I think that my problem is about:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;LI&gt;&lt;P&gt;"A component that uses a recent version of the .NET Framework is incompatible with a project that targets an earlier version of the .NET Framework.&lt;/P&gt;&lt;P&gt;For information about how to change the target .NET Framework version for a project, see &lt;SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb398202.aspx" rel="nofollow" target="_blank"&gt;How to: Target a Specific .NET Framework Version or Profile&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;A component that uses .NET Framework&amp;nbsp;4 is incompatible with a project that targets the .NET Framework 4 Client Profile. "&lt;/P&gt;&lt;/LI&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried changing the .NET Framework to all the recent versions but in no case am I able to reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;FONT size="2" face="Courier New"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;System.Data.OleDb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which seems to be the problem, so I am still unable to successfully build the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2010 09:42:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2848208#M62781</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2010-12-09T09:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2853996#M62782</link>
      <description>&lt;P&gt;Are you using the express edition of VS2010. I might be a limitation of that version. I all out of suggestions. Sorry&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2010 10:37:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2853996#M62782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-15T10:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2854020#M62783</link>
      <description>&lt;P&gt;I googled and came up with this wikilink:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express" rel="nofollow"&gt;http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;LI&gt;No IDE support for databases other than &lt;A title="SQL Server Express" target="_blank" href="https://forums.autodesk.com/wiki/SQL_Server_Express" rel="nofollow"&gt;SQL Server Express&lt;/A&gt; and &lt;A title="Microsoft Access" target="_blank" href="https://forums.autodesk.com/wiki/Microsoft_Access" rel="nofollow"&gt;Microsoft Access&lt;/A&gt;&lt;/LI&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the oleDB you could connect to other databases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i think when you use the express edition this is where your problem comes from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Irvin&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:23:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2854020#M62783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-15T11:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2856142#M62784</link>
      <description>&lt;P&gt;This is not a direct solution, but it shows that an Access DB data-bound Form can be made inside VB.NET or C# Express 2010 without writing any code at all.&amp;nbsp; It's the semi-automagic wizard method!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Start IDE&lt;BR /&gt;&lt;BR /&gt;Select New Project&lt;BR /&gt;&lt;BR /&gt;Select Windows Forms Application&lt;BR /&gt;&lt;BR /&gt;Top Menu Bar &amp;gt; Data &amp;gt; Show Data Sources (Shift-Alt-D)&lt;BR /&gt;&lt;BR /&gt;Data Sources treeview {empty}, (left-hand side) &amp;gt; Add New Data Source&lt;BR /&gt;&lt;BR /&gt;"Choose Data Source Type" Dialog &amp;gt; Database&lt;BR /&gt;&lt;BR /&gt;"Chose a Dataset Model" Dialog &amp;gt; Dataset&lt;BR /&gt;&lt;BR /&gt;"Choose your Data Connection" &amp;gt; [New Connection...]&lt;BR /&gt;&lt;BR /&gt;Change Data Source to "Microsoft Access Database File"; (Data provider changes to ".NET Framework Data Provider for OLE DB")&lt;BR /&gt;&lt;BR /&gt;"Add Connection Dialog" Dialog &amp;gt; Database File Name [Browse...] (navigate to .mdb or .accdb file; let's say My Documents\Dababase1.accdb)&lt;BR /&gt;&lt;BR /&gt;Enter login &amp;amp; password if applicable, then [Test Connection], then [OK] if good...&lt;BR /&gt;&lt;BR /&gt;Preview connection string for interests' sake, then [Next &amp;gt;]&lt;BR /&gt;&lt;BR /&gt;You now have the option of copying the datasource (actual database file) to the VB project directory every time the application is run.&amp;nbsp; Read the info scrreen carefully before you make your decision.&amp;nbsp; I selected [No].&lt;BR /&gt;&lt;BR /&gt;The connection string will now be saved to a special project setting, i.e. "Database1ConnectionString".&amp;nbsp; Click [Next...]&lt;BR /&gt;&lt;BR /&gt;Select any Tables or Queries at this point that will be used, and click [Finished]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can now add data-bound fields directly to your Form.&amp;nbsp; Simply Drag-and-Drop the objects in the Data Sources treeview onto the new Form.&lt;BR /&gt;&lt;BR /&gt;- Dragging a Query or Table will automatically add a shiny new data navigator tool bar and a data-grid&lt;BR /&gt;- Dragging one field at a time will add an individual label / text-box pair bound to that field, in addition to a shiny new data navigator tool bar.&lt;BR /&gt;&lt;BR /&gt;Note that prior to dragging, you can change the control type, i.e. text-box, combo-box, label, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's almost as easy as designing a form in MS Access!&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vince T.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 00:50:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2856142#M62784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-17T00:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2862740#M62785</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;When I began this thread I was starting to write a program that draws contour lines. &amp;nbsp;My input is a co-ordinate text file. The points are on a square grid, but I don't know how the grid is defined, that is I don't know which 4 points define each square. &amp;nbsp;I have to work with a large number of points, up to several million. &amp;nbsp;I have written some similar things in vba and used a MS Access database to store the points outside of autocad, with some success. &amp;nbsp; I knew that speed would be an important factor in this case, so I thought that this would be a good time to try vb.net. &amp;nbsp;After being unable to deal with the database in vb.net, I decided to write the program in vba. &amp;nbsp;The vba program works very well (see attached file) but as I thought, it takes too long to do the job. &amp;nbsp;The attached jpgout file from autocad is based on 500000 points, about 495000 squares, and took about 30 minutes to finish. &amp;nbsp; I use an empty Access file where I have predefined the tables, fields,indexes etc. &amp;nbsp;All the numbers are converted to long integers before being stored in the database. &amp;nbsp;Here are examples of the code that I use in vba to connect to and use the database file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FileCopy "e:\John\AU-JHL1\AU-JHL2.mdb", "z:\temp3.mdb"&lt;BR /&gt;Set dbsObj = DBEngine.Workspaces(0).OpenDatabase("z:\temp3.mdb")&lt;BR /&gt;Set rstObj = dbsObj.OpenRecordset("tblSquares", dbOpenTable)&lt;BR /&gt;Set rstObj1 = dbsObj.OpenRecordset("tblcoorsJHL2", dbOpenTable)&lt;BR /&gt;Set rstObj2 = dbsObj.OpenRecordset("tblcoorsJHL2", dbOpenTable)&lt;BR /&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ssql = "SELECT tblcoorsJHL2.indexjhl2 FROM tblcoorsJHL2 WHERE ((tblcoorsJHL2.yxdata=" &amp;amp; Trim(Str(yrso1&amp;amp;)) &amp;amp; ") And (tblcoorsJHL2.xxdata=" &amp;amp; Trim(Str(xrso1&amp;amp;)) &amp;amp; "));"&lt;BR /&gt;Set rstObj2 = dbsObj.OpenRecordset(ssql)&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ssql = "SELECT tblcoorsJHL2.yxdata, tblcoorsJHL2.xxdata,tblcoorsJHL2.zxdata From tblcoorsJHL2 WHERE tblcoorsJHL2.IndexJHL2=" &amp;amp; Trim(Str(c1)) &amp;amp; ";"&lt;BR /&gt;Set rstObj2 = dbsObj.OpenRecordset(ssql)&lt;/P&gt;&lt;P&gt;So what I really need to know is how to do the equivalent in vb.net. &amp;nbsp;I hope that I am correct in understanding that vb.net will be significantly faster than vba. &amp;nbsp;Placing the db file on a ram disk had no effect on the speed. &amp;nbsp;Half of the run time is spent defining the squares by point id and the other half interpolating the squares and drawing plines in autocad. &amp;nbsp;Any tips on any of these subjects will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2010 13:59:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2862740#M62785</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2010-12-22T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: MS-ACCESS from VB.NET 2010</title>
      <link>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2863358#M62786</link>
      <description>&lt;P&gt;I'm not sure switching from VBA to VB .NET will get you the increase in speed you are looking for, especially with working out of an external database rather than using List&amp;lt;T&amp;gt; or other in-memory data storage.&amp;nbsp; With several million points to consider, the only significant time savings will be to evaluate your algorithms and scrape together *any* kind of optimization that reduces the number of loops.&amp;nbsp; For example, when triangulating a set of points you can cache the circumcircle center and radius for each existing triangle so it doesn't have to be re-calculated each time, as well as sorting the triangle lists by the X and Y circcumcircle center.&amp;nbsp; Similarly you might be able to pre-sort your "squares" into lists for each contour elevation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless this is a learning exercise, at this scale you should be considering commercially available software.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2010 20:42:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ms-access-from-vb-net-2010/m-p/2863358#M62786</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2010-12-22T20:42:46Z</dc:date>
    </item>
  </channel>
</rss>

