<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.office.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx</link><description>Today&amp;rsquo;s Power Tip comes from Bob Larson of BTAB Development . Bob is a former Access MVP (2008-2009, 2009-2010), and offers a host of tips and code snippets on his site. If you have a long list of items to exclude from a query, and you don&amp;rsquo;t</description><dc:language>en-US</dc:language><generator>Telligent Community 1.5.134.15456 (Build: 5.5.134.15456)</generator><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14242</link><pubDate>Sat, 31 Jul 2010 20:02:33 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14242</guid><dc:creator>Tina</dc:creator><description>&lt;p&gt;This is one of the issues I resolve with a &amp;quot;tag&amp;quot; checkbox - a field I check for including or excluding records that don&amp;#39;t match some other logical pattern. For instance, I may get a number of newsletters returned by the Post Office - I do the necessary research to update the addresses (if possible), check the &amp;quot;tag&amp;quot; field, and run a mailing query on just the &amp;quot;tagged&amp;quot; records. After processing those records, I run an &amp;quot;untag&amp;quot; query.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14242" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14243</link><pubDate>Mon, 26 Jul 2010 13:26:32 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14243</guid><dc:creator>LV</dc:creator><description>&lt;p&gt;Great sample, great tips to build other more complex tasks, thanks for sharing!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14243" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14244</link><pubDate>Sun, 25 Jul 2010 14:16:56 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14244</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;The example Bob posted is perhaps too simple to be a hit with this audience, but we use the same basic idea all the time. For complicated filtering scenarios it&amp;#39;s very efficient. We often create a permanent local table for storing lists of ID&amp;#39;s to be excluded via left outer joins; a delete query clears the data from that &amp;#39;temp&amp;#39; table and an append query repopulates it. Sometimes the records to excluded are &amp;#39;hand picked&amp;#39; via a listbox; more often they&amp;#39;re generated by a code routine that relies on form based controls to supply criteria for the filter. Bob&amp;#39;s later posts here in which he cites the real world scenarios for this approach line up very well with our own approach.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14244" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14245</link><pubDate>Sat, 24 Jul 2010 17:05:15 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14245</guid><dc:creator>Bob Larson</dc:creator><description>&lt;p&gt;Oh, and also just another thing you can do - at work, we typically can have a lot of large queries. We will use this method with a subquery which we attach into things to either select what we want or exclude what we want using a query that has been created. Many times we use this because we have some memo fields that are needed or perhaps we want to have an outer join with another query and, of course, you cannot have criteria on the fields that are on the many side of an outer join.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14245" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14246</link><pubDate>Sat, 24 Jul 2010 16:51:39 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14246</guid><dc:creator>Bob Larson </dc:creator><description>&lt;p&gt;And so let&amp;#39;s say you have been given a list of companies to exclude in an Excel workbook and there are 200 entries. Are you goint to spend the time to manually enter all of those in a NOT IN statement or go select all 200 of them in a listbox? Not practical. There are plenty of times when this is very useful.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14246" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14247</link><pubDate>Sat, 24 Jul 2010 10:55:08 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14247</guid><dc:creator>Vladimir Cvajniga</dc:creator><description>&lt;p&gt;Very difficult.&lt;/p&gt;
&lt;p&gt;Instead, I&amp;#39;d use ListBox to select unwanted records and then dynamically create the IN part of the query for the form/report. I could even store IDs of selected items in an INI-file to be used later. No extra tables needed...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14247" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14248</link><pubDate>Fri, 23 Jul 2010 14:17:00 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14248</guid><dc:creator>Banana</dc:creator><description>&lt;p&gt;Bonnie - how would you use a query to make up an arbitrary list to be used as filter? Besides, a frustrated join has the potential to be optimized whereas a NOT IN() cannot be.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14248" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Exclude data from a query by using a table</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/07/22/power-tip-exclude-data-from-a-query-by-using-a-table.aspx#14249</link><pubDate>Fri, 23 Jul 2010 00:06:54 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14249</guid><dc:creator>Bonnie</dc:creator><description>&lt;p&gt;Seems like a long way around when you could just use the query in the first place.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14249" width="1" height="1"&gt;</description></item></channel></rss>