<?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>UC&#039;s Corner &#187; link table</title>
	<atom:link href="http://yussi.nl/index.php/tag/link-table/feed" rel="self" type="application/rss+xml" />
	<link>http://yussi.nl</link>
	<description>Yussi Ariefiyono</description>
	<lastBuildDate>Fri, 24 Jun 2011 13:08:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Access link table from different database with vba</title>
		<link>http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html</link>
		<comments>http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 07:10:48 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[link table]]></category>
		<category><![CDATA[TableDef]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=86</guid>
		<description><![CDATA[Problem: you have lots of database with link table in it, and in one time some of path are changed.. rather than change them manually,  i create function that can do that for me Solution: In this function you can specify the link you want to find and replace it with your new link. it]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
you have lots of database with link table in it, and in one time some of path are changed.. rather than change them manually,  i create function that can do that for me <img src='http://yussi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Solution:</strong><br />
In this function you can specify the link you want to find and replace it with your new link. it save me lots of time..</p>
<div id="_mcePaste">
<blockquote>
<div id="_mcePaste">Function RelinkTable(setDB As String, FINDtext As String, REPLACEtext As String)</div>
<div id="_mcePaste">Dim dbs As Database</div>
<div id="_mcePaste">Dim Tdf As TableDef</div>
<div id="_mcePaste">Dim Tdfs As TableDefs</div>
<div id="_mcePaste"></div>
<div id="_mcePaste">Set dbs = OpenDatabase(setDB)</div>
<div id="_mcePaste">Set Tdfs = dbs.TableDefs</div>
<div id="_mcePaste">&#8216;Loop through the tables collection</div>
<div id="_mcePaste">For Each Tdf In Tdfs</div>
<div id="_mcePaste">If Tdf.SourceTableName &lt;&gt; &#8220;&#8221; And Tdf.Connect = &#8220;;DATABASE=&#8221; &amp; FINDtext Then   &#8216;if its the linktable</div>
<div id="_mcePaste">Tdf.Connect = &#8220;;DATABASE=&#8221; &amp; REPLACEtext &#8216;Set the new source</div>
<div id="_mcePaste">Tdf.RefreshLink &#8216;Refresh the link</div>
<div id="_mcePaste">End If</div>
<div id="_mcePaste">Next &#8216;Goto next table</div>
<div id="_mcePaste">Set dbs = Nothing</div>
<div id="_mcePaste">Set Tdfs = Nothing</div>
<div id="_mcePaste">End Function</div>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/access-link-table-from-different-database-with-vba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

