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

UPDATE and INSERT count value

Status
Not open for further replies.
Sep 25, 2002
159
US
Hi,

I have this query I am trying to do, but I'm getting an 'operation must be an updatable query'. Can anyone tell what is wrong with my query?

UPDATE Table1 SET EUM = ( SELECT COUNT(Table2.Role) FROM Table2 WHERE Role='EUM')
WHERE Table1.ID=1;
 
'operation must be an updatable query'
Seems like an Access issue:
UPDATE Table1
SET EUM = DCount("Role", "Table2", "Role='EUM'")
WHERE Table1.ID=1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top