toddbingham
Registered User.
- Local time
- Yesterday, 20:43
- Joined
- Jul 8, 2003
- Messages
- 93
I am exporting some info to Excel. The database looks like this:
Company_ID Department_ID Gross_Amount Check_Date
1a 01 1000 07/02/03
1a 02 900 07/11/03
2a 01 500 07/02/03
2a 02 2000 07/11/03
2b 01 1000 07/02/03
2b 02 500 07/11/03
3c 01 1000 07/02/03
3c 02 700 07/11/03
etc.
What I would like to do when exportig is break it down like this:
Comapany
1a
01 1900
1a
02 2500 ............
So that is is catorgorized by company, then broken down by department and the totals of the checks are added together to form a deprtment total.
Every record in the database has a Company_ID and Department_ID attached.
Thanks in advance.
Company_ID Department_ID Gross_Amount Check_Date
1a 01 1000 07/02/03
1a 02 900 07/11/03
2a 01 500 07/02/03
2a 02 2000 07/11/03
2b 01 1000 07/02/03
2b 02 500 07/11/03
3c 01 1000 07/02/03
3c 02 700 07/11/03
etc.
What I would like to do when exportig is break it down like this:
Comapany
1a
01 1900
1a
02 2500 ............
So that is is catorgorized by company, then broken down by department and the totals of the checks are added together to form a deprtment total.
Every record in the database has a Company_ID and Department_ID attached.
Thanks in advance.