<?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>nandeshwar.info &#187; dbase</title>
	<atom:link href="http://nandeshwar.info/tag/dbase/feed/" rel="self" type="application/rss+xml" />
	<link>http://nandeshwar.info</link>
	<description></description>
	<lastBuildDate>Mon, 12 Dec 2011 21:33:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Access VBA: Link all Dbase files from a folder</title>
		<link>http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-vba-link-all-dbase-files-from-a-folder</link>
		<comments>http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 20:19:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Useful Procedures]]></category>
		<category><![CDATA[dbase]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/</guid>
		<description><![CDATA[If you would like to link all Dbase files, any linkable file for that matter, in MS Access, use the following code. I read somewhere that refreshing the links is slower than deleting and creating new links. Sub LinkAllTblsinDir() Dim sTblNm As String, sPath As String, sFileNm As String sPath = &#8220;C:\DW\&#8221; &#8216;Turn of the [...]]]></description>
			<content:encoded><![CDATA[<p>If you would like to link all Dbase files, any linkable file for that matter, in MS Access, use the following code. I read somewhere that refreshing the links is slower than deleting and creating new links.</p>
<div id="code"><span style="font-family: Courier;"><span style="color:#00007F;">Sub</span> LinkAllTblsinDir()<br />
<span style="color:#00007F;">Dim</span> sTblNm <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span>, sPath <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span>, sFileNm <span style="color:#00007F;">As</span> <span style="color:#00007F;">String</span><br />
sPath = &#8220;C:\DW\&#8221;<br />
<span style="color:#007F00;">&#8216;Turn of the Echo to avoid window repaint/refresh</span><br />
Application.Echo <span style="color:#00007F;">False</span></span></p>
<p><span style="font-family: Courier;">sFileNm = Dir(sPath, vbNormal)<br />
<span style="color:#00007F;">Do</span> <span style="color:#00007F;">While</span> sFileNm  &#8220;&#8221;<br />
<span style="color:#00007F;">If</span> Right(sFileNm, 3) = &#8220;dbf&#8221; <span style="color:#00007F;">Then</span><br />
sTblNm = Left(sFileNm, Len(sFileNm) &#8211; 4) <span style="color:#007F00;">&#8216;Extract the file name</span><br />
<span style="color:#007F00;">&#8216;Use the TransferDatabase option to link the tables from the specified directory</span><br />
<span style="color:#007F00;">&#8216;to your current Access DB</span><br />
DoCmd.TransferDatabase acLink, &#8220;dBase III&#8221;, sPath, acTable, sTblNm, sTblNm<br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span><br />
sFileNm = Dir<br />
<span style="color:#00007F;">Loop</span></span></p>
<p><span style="font-family: Courier;">Application.Echo <span style="color:#00007F;">True</span><br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">Sub</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

