angeltink99
New member
- Local time
- Today, 13:51
- Joined
- Aug 16, 2011
- Messages
- 6
I have a table that has dulicate account numbers but unique charges for each row. I need to combine them into one new table without the duplicates but with the unique data in tact.
The fields are:
Invoice #
Charge Type
Monthly Charge
Tax Charge
Usage Charge
The charge type is either AA or BB. Some invoice #s have both types of charge types, therefore creating two rows of charges for the same invoice #.
I have already split the tables into two tables...one with just the AA charge rows and one with just the BB charge rows. In the all BB table, all of the charges have been combined into a single new column called LD Charge.
Here is what I need:
In the two new tables, there are a few invoice #s that have duplicate rows with different charges. So, invoice #123 in the AA table has one row with a charge of 5 and another row with a charge of 2. I need to run a query to find and combine these possible dups without affecting invoice #s that only have one row of charges.
Then, I need to put table AA and BB together with the fields:
Invoice #
Charge Type
Monthly Charge
Tax Charge
Usage Charge
LD Charge
and New column TOTAL CHARGE (sum of all charges in row)
Can someone please help me with this? I have limited VBA knowledge, but can kinda figure out what stuff means.
Thanks!!
The fields are:
Invoice #
Charge Type
Monthly Charge
Tax Charge
Usage Charge
The charge type is either AA or BB. Some invoice #s have both types of charge types, therefore creating two rows of charges for the same invoice #.
I have already split the tables into two tables...one with just the AA charge rows and one with just the BB charge rows. In the all BB table, all of the charges have been combined into a single new column called LD Charge.
Here is what I need:
In the two new tables, there are a few invoice #s that have duplicate rows with different charges. So, invoice #123 in the AA table has one row with a charge of 5 and another row with a charge of 2. I need to run a query to find and combine these possible dups without affecting invoice #s that only have one row of charges.
Then, I need to put table AA and BB together with the fields:
Invoice #
Charge Type
Monthly Charge
Tax Charge
Usage Charge
LD Charge
and New column TOTAL CHARGE (sum of all charges in row)
Can someone please help me with this? I have limited VBA knowledge, but can kinda figure out what stuff means.
Thanks!!