<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Link External Tables with VBA</title>
	<atom:link href="http://msaccesstips.com/2008/09/link-external-tables-with-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://msaccesstips.com/2008/09/link-external-tables-with-vba/</link>
	<description>Free MS-Access downloads</description>
	<lastBuildDate>Fri, 20 Jan 2012 07:03:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Urgent: SQL Append Query Syntax</title>
		<link>http://msaccesstips.com/2008/09/link-external-tables-with-vba/comment-page-1/#comment-2791</link>
		<dc:creator>Urgent: SQL Append Query Syntax</dc:creator>
		<pubDate>Tue, 22 Feb 2011 11:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=162#comment-2791</guid>
		<description>[...] How to link external database table in Access VBA? See the following site:- http://msaccesstips.com/2008/09/link...bles-with-vba/ [...]</description>
		<content:encoded><![CDATA[<p>[...] How to link external database table in Access VBA? See the following site:- <a href="http://msaccesstips.com/2008/09/link...bles-with-vba/" rel="nofollow">http://msaccesstips.com/2008/09/link&#8230;bles-with-vba/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a.p.r. pillai</title>
		<link>http://msaccesstips.com/2008/09/link-external-tables-with-vba/comment-page-1/#comment-108</link>
		<dc:creator>a.p.r. pillai</dc:creator>
		<pubDate>Wed, 26 Aug 2009 20:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=162#comment-108</guid>
		<description>When you Link an Excel Worksheet with specific Sheet Name (or a Named Range) from a WorkBook MS-Access looks for this specific names for maintaining the link correctly.  Even if you replace it with a different Workbook with the same Worksheet Name, Workbook Name and earlier data structure but with fresh data the link to access remains intact. You can even copy and paste the data into the earlier worksheet area replacing old data.  You don&#039;t have to change the name of the worksheet/workbook etc.&lt;br /&gt;&lt;br /&gt;Now the Question of updating data on the table. Here there is something not clear to me from what you have stated above.  If you are trying to update only certain records of the table while leaving others, which were updated last time untouched, then you have to device a method to identify records for updating into the table and to leave others untouched.&lt;br /&gt;&lt;br /&gt;For example: You can introduce a Date field in the Access Table and update this field with the current date while updating data from excel table. Next time you can setup criteria to exclude these records based on the last update date and update others etc.&lt;br /&gt;&lt;br /&gt;In either case it is better to create a Make-Table Query, to create a copy of the Access Table (Backup), and add it to the Macro before the update Query line.  So that if you find that something went wrong then you can restore the data from this copy of the Table.&lt;br /&gt;&lt;br /&gt;You may create Queries on Linked Excel Table and on Access Table on UniqueIDs (as you have stated) and link them in a common query on UniqueID and check the output records or count of records through VBA (=DCount(&quot;*&quot;,&quot;QueryName&quot;) to check whether any matching records are there in both tables which likely to overwrite the earlier updated values before actually running the update Query.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;a.p.r. pillai</description>
		<content:encoded><![CDATA[<p>When you Link an Excel Worksheet with specific Sheet Name (or a Named Range) from a WorkBook MS-Access looks for this specific names for maintaining the link correctly.  Even if you replace it with a different Workbook with the same Worksheet Name, Workbook Name and earlier data structure but with fresh data the link to access remains intact. You can even copy and paste the data into the earlier worksheet area replacing old data.  You don&#39;t have to change the name of the worksheet/workbook etc.</p>
<p>Now the Question of updating data on the table. Here there is something not clear to me from what you have stated above.  If you are trying to update only certain records of the table while leaving others, which were updated last time untouched, then you have to device a method to identify records for updating into the table and to leave others untouched.</p>
<p>For example: You can introduce a Date field in the Access Table and update this field with the current date while updating data from excel table. Next time you can setup criteria to exclude these records based on the last update date and update others etc.</p>
<p>In either case it is better to create a Make-Table Query, to create a copy of the Access Table (Backup), and add it to the Macro before the update Query line.  So that if you find that something went wrong then you can restore the data from this copy of the Table.</p>
<p>You may create Queries on Linked Excel Table and on Access Table on UniqueIDs (as you have stated) and link them in a common query on UniqueID and check the output records or count of records through VBA (=DCount(&quot;*&quot;,&quot;QueryName&quot;) to check whether any matching records are there in both tables which likely to overwrite the earlier updated values before actually running the update Query.</p>
<p>Regards,<br />a.p.r. pillai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://msaccesstips.com/2008/09/link-external-tables-with-vba/comment-page-1/#comment-109</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 25 Aug 2009 21:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=162#comment-109</guid>
		<description>I linked a table to an Excel spreadsheet. Then when the Excel spreadsheet is changed, an Access query/macro updates the table (update query).  However, when creating the same spreadsheet (basically a new Excel speadsheet because the values are different) and running the query/macro again which updates the table again, all the values of the previous changes are wiped out.  How can I keep the previous changes or replace the previous values when the unique ID is the same?   Should I name each Excel spreadsheet a different name each time?</description>
		<content:encoded><![CDATA[<p>I linked a table to an Excel spreadsheet. Then when the Excel spreadsheet is changed, an Access query/macro updates the table (update query).  However, when creating the same spreadsheet (basically a new Excel speadsheet because the values are different) and running the query/macro again which updates the table again, all the values of the previous changes are wiped out.  How can I keep the previous changes or replace the previous values when the unique ID is the same?   Should I name each Excel spreadsheet a different name each time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://msaccesstips.com/2008/09/link-external-tables-with-vba/comment-page-1/#comment-110</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 25 Jan 2009 00:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=162#comment-110</guid>
		<description>THANK YOU! This sentence resolved a lot of frustration: &quot;The $ symbol is necessary with the (Excel) Worksheet name.&quot; Much appreciated.</description>
		<content:encoded><![CDATA[<p>THANK YOU! This sentence resolved a lot of frustration: &#8220;The $ symbol is necessary with the (Excel) Worksheet name.&#8221; Much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://msaccesstips.com/2008/09/link-external-tables-with-vba/comment-page-1/#comment-111</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 23 Dec 2008 15:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=162#comment-111</guid>
		<description>Excellent.  Thanks for posting this.  Very helpful to me.  Tom in Minneapolis.</description>
		<content:encoded><![CDATA[<p>Excellent.  Thanks for posting this.  Very helpful to me.  Tom in Minneapolis.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

