<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SPEED VI &#187; Access</title>
	<atom:link href="http://www.speedvi.com/tag/access/feed" rel="self" type="application/rss+xml" />
	<link>http://www.speedvi.com</link>
	<description>Everything about Virtual Instruments, Computer-based Measurement and Control, Automation...</description>
	<lastBuildDate>Thu, 28 Jan 2010 14:54:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset</title>
		<link>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html</link>
		<comments>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html#comments</comments>
		<pubDate>Fri, 16 Jan 2009 09:25:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Database Connectivity Toolset]]></category>
		<category><![CDATA[UDL file]]></category>

		<guid isPermaLink="false">http://www.speedvi.com/?p=32</guid>
		<description><![CDATA[One of my project needs to save test results to different Access database files for different units to be tested. The database files&#8217; name is automatic generated based on UUT&#8217;s serial number. Currently, I&#8217;m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The [...]]]></description>
			<content:encoded><![CDATA[<p>One of my project needs to save test results to different Access database files for different units to be tested. The database files&#8217; name is automatic generated based on UUT&#8217;s serial number. Currently, I&#8217;m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The UDL file contains only one static database file and it is quite hard to change it programmly without manually select a database file and click the confirm button.  And it will be a nightmare to create each UDL file for each UUT before the test is taken.</p>
<p>To change the UDL file&#8217;s content in LabVIEW programmly is not easy too. Because UDL file  is unicode-formatted, and LabVIEW is quite limited in support to unicode. I had tried several ways to change the database file name in UDL file and save the UDL file to hard disk. And when I open the changed UDL again, I got &#8220;File corrupted&#8221; message. It seemed that it is not a good way.<span id="more-32"></span>At last, I had to read the help file of Database Connectivity Toolset word by word to find a way to work round. Wow, I found out that the VI DB Tools Open Connection is a Polymorphic VI that accepts string and file path data types. Just append the Access database file&#8217;s path after &#8220;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&#8221;, and wire it to connection information connector of DB Tools Open Connection VI, and everything will be OK.  Everything get solved.</p>
<p>It is really a good habit to read the help file carefully.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>March 8, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html" title="A Note about Using Database Connectivity Toolset in LabVIEW">A Note about Using Database Connectivity Toolset in LabVIEW</a> (0)</li><li>December 24, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html" title="Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW">Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW</a> (0)</li><li>December 18, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html" title="How to write and read Access database in LabVIEW">How to write and read Access database in LabVIEW</a> (0)</li><li>July 10, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/move-up-and-down-tree-control-sub-items-programmatically-in-labview.html" title="Move Up and Down Tree Control Sub-items Programmatically in LabVIEW">Move Up and Down Tree Control Sub-items Programmatically in LabVIEW</a> (0)</li><li>April 20, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/transfer-more-than-text-message-in-queue-between-loops-in-labview.html" title="Transfer More Than Text Message in Queue Between Loops in LabVIEW">Transfer More Than Text Message in Queue Between Loops in LabVIEW</a> (2)</li><li>March 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-create-linked-list-in-labview.html" title="How to Create Linked List in LabVIEW">How to Create Linked List in LabVIEW</a> (0)</li><li>February 22, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/build-a-tri-state-led-indicator-in-labview.html" title="Build a Tri-State LED Indicator in LabVIEW">Build a Tri-State LED Indicator in LabVIEW</a> (0)</li><li>February 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/ni-announcing-the-labview-2009-platform-beta-program.html" title="NI Announcing the LabVIEW 2009 Platform Beta Program">NI Announcing the LabVIEW 2009 Platform Beta Program</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW</title>
		<link>http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html</link>
		<comments>http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html#comments</comments>
		<pubDate>Tue, 23 Dec 2008 18:03:33 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[UDL]]></category>

		<guid isPermaLink="false">http://www.speedvi.com/?p=15</guid>
		<description><![CDATA[A Microsoft Data Link file or Universal Data Link is a universal file that links to a specific database and can be used by many different applications. UDL File Creation The way a .UDL file is initially created depends on your Windows installation. This can be created  desktop shortcut menu. Right-click on the Desktop, or [...]]]></description>
			<content:encoded><![CDATA[<p>A Microsoft Data Link file or Universal Data Link is a universal file that links to a specific database and can be used by many different applications.</p>
<div><strong>UDL File Creation</strong></div>
<p><strong>The way a .UDL file is initially created depends on your Windows installation. This can be created  desktop shortcut menu.</p>
<p></strong></p>
<ol>
<li>Right-click on the Desktop, or in the folder where you want to create the file.</li>
<li>Select &#8220;New&#8221; from the shortcut menu. If Microsoft Data Link is listed, select it.</li>
<li>Windows 2000 will most likely not have a Microsoft Data Link listed. If this is the case, please refer to the next section. <span id="more-15"></span></li>
</ol>
<div><span><strong>UDL File Creation</strong> (Microsoft Data Link not listed)</span></div>
<p><span>If no Microsoft Data Link is listed, the following steps should fix this.</p>
<ol>
<li>Right-click on the desktop, or in the folder where you want to create the file.</li>
<li>Select <strong>New</strong>, then <strong>Text Document</strong>.</li>
<li>Give the Text Document any name with a .UDL extension (&#8220;Show file extensions&#8221; must be enabled in folder options).</li>
<li>A window will pop up warning that &#8220;If you change a filename extension, the file may become unusable. Are you sure you want to change it?&#8221; &#8211; select <strong>Yes</strong>.</li>
<li>You have now successfully created a .UDL file.</li>
</ol>
<div><span><strong>Establish the Connection .MDB or .ACCDB File</strong></span></div>
<p><span><strong>At this point you have a Microsoft Data Link file. In order to use this in a database application, a couple more tasks need to be accomplished. In this case, you need to link the .UDL file to an Access database.</p>
<p></strong></p>
<ol>
<li>Open Access. Select <strong>Blank Access Database</strong> and click <strong>OK</strong>.</li>
<li>In the File New Database window, save the Database in a location of your choice with any .MDB or .ACCDB extension name.</li>
<li>At this point you can close Access (just remember where you saved the database to).</li>
<li>Go back to the .UDL file that was created previously and double-click on it (this is where a link to the Access database is created).</li>
<li>Click the <strong>Provider</strong> tab. <span><span>For .MDB files, select &#8220;Microsoft Jet 4.0 OLE DB Provider&#8221;. For .ACCDB files, select &#8220;Microsoft Office 12.0 Access Database Engine OLE DB Provider&#8221;.</span></span></li>
<li>Click the Connection tab. Navigate to the .MDB or .ACCDB Access Database that was created in step 2. Now, the .UDL file is ready to be used in LabVIEW.</li>
</ol>
<p> </p>
<p></span></span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>December 18, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html" title="How to write and read Access database in LabVIEW">How to write and read Access database in LabVIEW</a> (0)</li><li>January 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html" title="Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset">Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset</a> (2)</li><li>July 10, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/move-up-and-down-tree-control-sub-items-programmatically-in-labview.html" title="Move Up and Down Tree Control Sub-items Programmatically in LabVIEW">Move Up and Down Tree Control Sub-items Programmatically in LabVIEW</a> (0)</li><li>April 20, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/transfer-more-than-text-message-in-queue-between-loops-in-labview.html" title="Transfer More Than Text Message in Queue Between Loops in LabVIEW">Transfer More Than Text Message in Queue Between Loops in LabVIEW</a> (2)</li><li>March 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-create-linked-list-in-labview.html" title="How to Create Linked List in LabVIEW">How to Create Linked List in LabVIEW</a> (0)</li><li>March 8, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html" title="A Note about Using Database Connectivity Toolset in LabVIEW">A Note about Using Database Connectivity Toolset in LabVIEW</a> (0)</li><li>February 22, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/build-a-tri-state-led-indicator-in-labview.html" title="Build a Tri-State LED Indicator in LabVIEW">Build a Tri-State LED Indicator in LabVIEW</a> (0)</li><li>February 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/ni-announcing-the-labview-2009-platform-beta-program.html" title="NI Announcing the LabVIEW 2009 Platform Beta Program">NI Announcing the LabVIEW 2009 Platform Beta Program</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to write and read Access database in LabVIEW</title>
		<link>http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html</link>
		<comments>http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html#comments</comments>
		<pubDate>Wed, 17 Dec 2008 16:07:03 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://www.speedvi.com/?p=7</guid>
		<description><![CDATA[There are a couple of different methods to communicate with Access in LabVIEW, and some are more difficult than others. You can use ActiveX Automation to open Microsoft Access and control many aspects of the Access Application. For actual database manipulation however, the Access automation classes rely upon the Microsoft DAO (Data Access Object) and/or [...]]]></description>
			<content:encoded><![CDATA[<p><span class="noindex">There are a couple of different methods to communicate with Access in LabVIEW, and some are more difficult than others. You can use ActiveX Automation to open Microsoft Access and control many aspects of the Access Application. For actual database manipulation however, the Access automation classes rely upon the Microsoft DAO (Data Access Object) and/or ADO (ActiveX Data Object) classes. These classes can be used independently or through the Access automation classes to read and write data into an Access database. These classes can be difficult to use and may require a fair amount of SQL knowledge to accomplish a complicated task.</span></p>
<p>For more information about the Microsoft Access automation classes, DAO or ADO classes refer to the Microsoft website and Developer Network.<span id="more-7"></span>It is also possible to use Dynamic Data Exchange (DDE) communication between LabVIEW and Access. DDE is a Microsoft technology that preceded COM and ActiveX. DDE is <strong>NOT recommended</strong> as it is considered by most to be obsolete. However, examples still ship with LabVIEW that demonstrate how to communicate with MS Access using DDE. The examples are located in ..\LabVIEW\examples\comm\access.llb</p>
<p>Note: The LabVIEW <strong>Database Connectivity Toolset</strong> is the preferred method of database communication with LabVIEW. The LabVIEW Database Connectivity Toolset offers many powerful tools and extended capabilites for quickly accessing databases. The LabVIEW Database Connectivity Toolset offers connectivity to most popular databases through Microsoft ADO technology, complete SQL Functionality, and the ability to save records in XML format. It provides both easy-to-use and advanced functions to allow common database operations as well as detailed database accessibility. The LabVIEW Database Connectivity Toolset is sold separately or in the LabVIEW Enterprise Connectivity Toolset along with the LabVIEW Statistical Process Toolkit and the LabVIEW Internet Developers Toolkit.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>December 24, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html" title="Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW">Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW</a> (0)</li><li>January 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html" title="Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset">Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset</a> (2)</li><li>July 10, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/move-up-and-down-tree-control-sub-items-programmatically-in-labview.html" title="Move Up and Down Tree Control Sub-items Programmatically in LabVIEW">Move Up and Down Tree Control Sub-items Programmatically in LabVIEW</a> (0)</li><li>April 20, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/transfer-more-than-text-message-in-queue-between-loops-in-labview.html" title="Transfer More Than Text Message in Queue Between Loops in LabVIEW">Transfer More Than Text Message in Queue Between Loops in LabVIEW</a> (2)</li><li>March 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-create-linked-list-in-labview.html" title="How to Create Linked List in LabVIEW">How to Create Linked List in LabVIEW</a> (0)</li><li>March 8, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html" title="A Note about Using Database Connectivity Toolset in LabVIEW">A Note about Using Database Connectivity Toolset in LabVIEW</a> (0)</li><li>February 22, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/build-a-tri-state-led-indicator-in-labview.html" title="Build a Tri-State LED Indicator in LabVIEW">Build a Tri-State LED Indicator in LabVIEW</a> (0)</li><li>February 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/ni-announcing-the-labview-2009-platform-beta-program.html" title="NI Announcing the LabVIEW 2009 Platform Beta Program">NI Announcing the LabVIEW 2009 Platform Beta Program</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
