Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

I know there's a simple answer!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jezzsj@gmail.com - 26 Mar 2007 16:45 GMT
Hi,

I have two tables, table a and table b, I want to run a query that
will remove any records from table a that are not contained in table b
the result being table c or something similar. Any assistance would be
appreciated.

Thanks
Al Campagna - 26 Mar 2007 16:58 GMT
Jezz,
   Step 1... Backup
   Step 2... Backup   :-D

   Create a select query with A linked to B... "All in Table A, and only those in Table B
that match"
   Use this realtionship as the basis for a MakeTable query to send all those A records
that have a B record... to a new table.
   Then, use that same basic query to run a Delete query against Table A

Signature

hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.