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 Chriss Miller 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.

samotek

Technical User
Joined
May 9, 2005
Messages
197
Location
BG
I want to build a query where the data from the table products1 to be inserted into the table products.
I have made he following query which does not update :
UPDATE products INNER JOIN products1 ON products.Productid = products1.Productid SET products.branch5 = [products1].[branch5];
The figures in table products do not show the figures from tble products1.
Why is it so ?
 
Just to add that productid in both tables are autonumber field
 
What does it do? Does it pop up and tell you it's going to update 0 rows?

I've just tried your exact query and it works fine for me (as expected).

Might sound a daft question but there are matching ProductID's in both tables aren't there?

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
I want to build a query where the data from the table products1 to be inserted into the table products.

Might I suggest an INSERT query then?

INSERT INTO Products SELECT * FROM Products2




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top