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

Error message in update-subquery

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Dear all,

Probably a very simple question for this forum but I can't think of any solution:

I get an error message when I try to put forward a select-subquery in an update statement, e.g.

UPDATE IP_Adresse SET IP_Adresse = (SELECT
MAC FROM Adapter WHERE Adapter_ID = 3)
WHERE Adapter_ID = 3;

The error message reads: "operation must use an updatable query" (translated from German, thus probably not 100% accurate). The update works whenever I do it without the select-subquery, thus there cannot be any problem with access permissions or 1:n relations.

Any help is greatly appreciated,

Jens
 
UPDATE Queries Dont like more than 1 WHERE statement - try HAVING.... or put both WHERE criteria together using AND.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top