Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filter/query using 2 tables

Status
Not open for further replies.

rotschreck

Programmer
Jan 26, 2000
54
CA
I have 2 tables each with a similar column (townships).<br>
<br>
table 1 has districts and townships<br>
table 2 has townships<br>
<br>
the townships in table 2 are fewer than table 1 but _may_ contain some that table 1 does not have yet.<br>
<br>
I've attempted to use the append query to get rid of any duplicates between the tables and dumping the info in table 3. then I made a find unmatch query between table 1 and table 3.<br>
<br>
Unfortunately, there are certain records that are missing the word &quot;area&quot; in table 2, but that should have it.<br>
aside from going thru all the records and adding it, is there an easier way to remove the records in table 2 that correspond to records in table 1, at the same time as removing the similar &quot;area&quot; lacking records in table 2.<br>
<br>
I think it is possible using a query with the district field in table 1 since table 2 doesn't have one, but I am unsure how.<br>
<br>
thanks <p> <br><a href=mailto: > </a><br><a href=
 
Create a query that has the critera you are looking for in the desired table only.<br>
So there is just one table in your query.<br>
then highlight all of the records it finds and press the delete they will be gone.<br>
MAKE SURE you you have the correct table before deleting cause once they are gone that it there is no getting them back.<br>
As for your other query just create a Plain &quot;Select Query&quot; with both tables and link to what ever fields you want.<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
this only deletes the whole record, not the field in question. I need to keep the records intact for the presentation, and I need the existance of the field to still be there.<br>
<br>
I need the info in 2 fields (columns) to be deleted from over 2000 records. *sigh* is this possible? <p> <br><a href=mailto: > </a><br><a href= Eclectic Page</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top