Help with SQL / Update Query

T

Thomascl

Newbie - please be gentle...

I want to update a field [Master Balance]in a table [Vendors] based on Query
Results.

Here is my SQL that produces the data I want to store in the table:

SELECT DISTINCTROW [Sales Ticket].[Vendor ID], Sum([Sales Ticket].[Account
Balance]) AS [SumOfAccount Balance]
FROM [Sales Ticket]
GROUP BY [Sales Ticket].[Vendor ID];

I need to update the field [Master Balance] in the Vendors table for
each record in the Query that has a match based Vendor ID with the value
[SumOfAccount Balance].
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top