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!

"Must use updateable query" problem

Status
Not open for further replies.

marlun

Programmer
Feb 7, 2003
70
0
0
SE
Hi. I have a table that needs to be updated with an updatequery, but when I run it I get something like "Must use updateable query". My updatequery gets its value from an select query that calculates a Sum. How do I do to prevent that from happening or is there any other way to update my table.

Please help
 
If any of the 'sources' of a query is not updatable, the query is not updatable.

Either open a recordset and do your stuff there or remove the Sum query and use DSum function to calculate what you need.

Update YourTable Set YourField = DSum("FieldToSum","SumTable","CriteriaToLimitTheSum")

HTH



[pipe]
Daniel Vlas
Systems Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top