A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query to look for unused data



 
 
Thread Tools Display Modes
  #1  
Old January 16th, 2010, 01:23 PM posted to microsoft.public.access.queries
Russ via AccessMonster.com
external usenet poster
 
Posts: 62
Default Query to look for unused data

I have a product table "tblProducts" with field named "productcatID" that is
linked to the "tblCategories" via the category id, how can I make a query to
search the products table looking for any unused categories listed in the
"tblCategories"so I can delete any unused categories in the "tblCategories" .


i.e. if the category "Widget" have never been used in the "tblProducts" then
I can delete it

Hope I have explained this well enough...

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/201001/1

  #2  
Old January 16th, 2010, 03:32 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Query to look for unused data

Russ via AccessMonster.com wrote:

I have a product table "tblProducts" with field named "productcatID" that is
linked to the "tblCategories" via the category id, how can I make a query to
search the products table looking for any unused categories listed in the
"tblCategories"so I can delete any unused categories in the "tblCategories" .


i.e. if the category "Widget" have never been used in the "tblProducts" then
I can delete it



Try using the Unmatched quiery wizard.

--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.