G
Guest
As I understand Access queries, when you ask it to give you a Sum of all
amounts under an index number (such as an item group number), you should get
a sum of all the records that fall under that index number. Well, what I'm
doing is taking the sums of every item group number (IGN) in one table and
comparing that to the sums of every IGN in another table. (I have to do some
minor formatting to get the IGN, but that's the easy part.) So I have
something like this:
Table A:
1234567-0 Group Total: $225
Table B:
1234567-0 Group Total: -$225
which is exactly what I want to get to, I want the sums that cancel
eachother out so I can clear them from my tables. (I'm doing an account
balancing database.) The problem I'm getting is that far too often Access is
not calculating the grouping correctly, so I'll have something like this:
Table A:
1234567-0-1: $200
1234567-0-2: $25
Table B:
1234567-0-1: -$200
1234567-0-2: -$25
1234567-0-3: -$35
The true total of that IGN for Table B should be -$260, not -$225... but for
some reason Access isn't calculating it that way, which is causing my
balancing to be off when I try to clear out the items for that IGN. I have a
clearing query that finds the sums for each IGN that cancel eachother out and
goes to the main data tables and updates their "Cleared" field to show that
they have been matched off, but when one of these bogus sums comes up, I end
up clearing off more records than actually should be cleared. It's putting me
about $10,000 over on my clearing. Can anybody give me some kind of an idea
why these queries would be doing this?
amounts under an index number (such as an item group number), you should get
a sum of all the records that fall under that index number. Well, what I'm
doing is taking the sums of every item group number (IGN) in one table and
comparing that to the sums of every IGN in another table. (I have to do some
minor formatting to get the IGN, but that's the easy part.) So I have
something like this:
Table A:
1234567-0 Group Total: $225
Table B:
1234567-0 Group Total: -$225
which is exactly what I want to get to, I want the sums that cancel
eachother out so I can clear them from my tables. (I'm doing an account
balancing database.) The problem I'm getting is that far too often Access is
not calculating the grouping correctly, so I'll have something like this:
Table A:
1234567-0-1: $200
1234567-0-2: $25
Table B:
1234567-0-1: -$200
1234567-0-2: -$25
1234567-0-3: -$35
The true total of that IGN for Table B should be -$260, not -$225... but for
some reason Access isn't calculating it that way, which is causing my
balancing to be off when I try to clear out the items for that IGN. I have a
clearing query that finds the sums for each IGN that cancel eachother out and
goes to the main data tables and updates their "Cleared" field to show that
they have been matched off, but when one of these bogus sums comes up, I end
up clearing off more records than actually should be cleared. It's putting me
about $10,000 over on my clearing. Can anybody give me some kind of an idea
why these queries would be doing this?