RE: update query with summary
- From: KARL DEWEY <KARLDEWEY@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 8 Oct 2008 15:54:02 -0700
Use a totals query with criteria of zero on the sum, out put the customer
and city.
Use that query INNER join on both fields in your delete query.
--
KARL DEWEY
Build a little - Test a little
"Newbie101" wrote:
I have a lot of data that has debits and credits. Whenever 2 field.
(customer/city) matched and the debits and credits sum up to zero, I want to
close out both lines by having "Closed" in a status column.
sample:
customer1 LA 100.00
customer1 LA -100.00
customer2 LA 100
customer2 SF -100
When i run a summary query, customer1 will come up as 0 and i would like to
use an update query to update the data on the "status" field. But since
customer2 is different in city, i don't want that field to be closed.
Is there a update query that will do that? Thank you!
- References:
- update query with summary
- From: Newbie101
- update query with summary
- Prev by Date: Re: update query with summary
- Next by Date: Re: Access Table Sorting/Query Last Function
- Previous by thread: Re: update query with summary
- Next by thread: Using IN an NOT IN FUNCTION ON TH FLY
- Index(es):
Relevant Pages
|