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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update query

Status
Not open for further replies.

shopwise

Technical User
Sep 22, 2008
52
US
I have these 2 tables of the identical structures: current_removals, faxnumbers

and would like to create an update query that would accomplish the following:

update the faxnumbers.Remove field to the value "True" for every value that is equal by these 2 fields: current_removals.SoldToFax and faxnumbers.SoldToFax

What Access steps are to be taken to accomplish this or what SQL query should be written?

 
Code:
UPDATE faxnumbers 
INNER JOIN current_removals ON 
faxnumbers.SoldToFax = current_removals.SoldToFax 
SET faxnumbers.Remove = True;

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
thanks for your response.

However, it doesn't seem to work. Each time I run the query I am prompted that 2 rows will be updated. Indeed 2 rows have been updated the very first time I run the query but this is where it stops. there are many more records that should have been changed

Am I supposed to create a relationahip between these 6ables specifically for this query?
 
No. That should work as written. Are you sure that the values in SoldToFax in the two tables are identical?

(e.g. extra spaces will not evaluate as equal).

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top