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

Update table from query results

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
I have a query that retrieves AccountNumber, SumofFees, SumofTotal.

I have a table with the fields - AccountNumber, Fees, Total. AccountNumber is populated with AccountNumber data. These accountnumbers may appear in the query.


I want to take the results from the query and update the table with the sumoffees - fees field, sumoftotal - total field.

Any ideas?
 
If the "I have a query" is not updateable (totals or union or other) then you can't create an update query using it.

If you have a good reason to store sums and totals, you can possibly append to a temporary table with a primary key of AccountNumber. Then use the temporary table to update your "table with the fields...".

Duane
Hook'D on Access
MS Access MVP
 
Hi.

I have created a temp table that puts the results from the query into it. Then I run the update query against that table. works now

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top