<?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>Wed, 18 Aug 2010 19:24:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<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/</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>a7n9</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 Echo to avoid window [...]]]></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>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='title' title='Use these links to share this page with others'>Share</div><div class='linkbuttons'><a href='http://www.citeulike.org/posturl?url=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Save to CiteULike' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/citeulike.png' style='width:16px; height:16px;' alt='[CiteULike] ' /></a> <a href='http://del.icio.us/post?url=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://www.facebook.com/share.php?u=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/' title='Save to Facebook' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/facebook.png' style='width:16px; height:16px;' alt='[Facebook] ' /></a> <a href='http://www.furl.net/storeIt.jsp?u=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;t=Access VBA: Link all Dbase files from a folder' title='Save to Furl' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/furl.png' style='width:16px; height:16px;' alt='[Furl] ' /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google] ' /></a> <a href='http://reddit.com/submit?url=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://slashdot.org/bookmark.pl?url=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot] ' /></a> <a href='http://www.stumbleupon.com/submit?url=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;title=Access VBA: Link all Dbase files from a folder' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon] ' /></a> <a href='http://technorati.com/faves?add=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati] ' /></a> <a href='http://twitter.com/home/?status=Access VBA: Link all Dbase files from a folder+http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Access VBA: Link all Dbase files from a folder&amp;uri=http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://nandeshwar.info/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://nandeshwar.info/2007/07/18/access-vba-link-all-dbase-files-from-a-folder/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div><div class='brand'><small><a href='http://www.bookmarkify.com/'>Powered by Bookmarkify&trade;</a></small></div></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>
