F
Frank M.
I have trouble using a query as the basis in a second
update query. The update query is for example:
UPDATE tab1 RIGHT OUTER JOIN qry_sub
ON tab1.CustNo = qry_sub.CustNo
SET tab1.CustNo = qry_sub.CustNo,
tab1.Total = tab1.Total + qry_sub.Total
etc.
Now, the query qry1 is an aggregation query, i.e. some of
it's fields is aggregated values coming from a more
detailed sales table.
When I run the updating query (qry_sub), I get the error
message: The action has to have an updatable query
(translated as I don't use an English Office XP). Now,
qry_sub is probably not updatable (since it aggregates),
but why does it have to be; no values are assigned to any
of it's fields; they are only taken from it and assigned
to tab1 - so I don't see the need.
The only way around this, as I see it now, would be to
have a temporary table that I could dump qry_sub result
to, and then use that table in the update query, but this
will take extra space in the base and processing time, so
I would rather avoid it, if possible.
Any suggestions will be much appreciated.
Regards,
Frank
update query. The update query is for example:
UPDATE tab1 RIGHT OUTER JOIN qry_sub
ON tab1.CustNo = qry_sub.CustNo
SET tab1.CustNo = qry_sub.CustNo,
tab1.Total = tab1.Total + qry_sub.Total
etc.
Now, the query qry1 is an aggregation query, i.e. some of
it's fields is aggregated values coming from a more
detailed sales table.
When I run the updating query (qry_sub), I get the error
message: The action has to have an updatable query
(translated as I don't use an English Office XP). Now,
qry_sub is probably not updatable (since it aggregates),
but why does it have to be; no values are assigned to any
of it's fields; they are only taken from it and assigned
to tab1 - so I don't see the need.
The only way around this, as I see it now, would be to
have a temporary table that I could dump qry_sub result
to, and then use that table in the update query, but this
will take extra space in the base and processing time, so
I would rather avoid it, if possible.
Any suggestions will be much appreciated.
Regards,
Frank