OK, I'm having a total brain cramp trying to create a crosstab query. It's been a while since I've done this.
I have a query (qryCust) that pulls the following fields from a large DB:
CUST(this is customer number and all are the same "0333"), [ERR 1], [ERR 2], [ERR 3] and then several fields with different costs in them.
ERR 1, ERR 2, ERR 3 will contain either an error code or will be null.
I'm trying to come up with a query that will look like:
I'm completely stuck. I know there should be a way to get this done but it's been so long I just can't get going. Any help would be greatly appreciated.
I have a query (qryCust) that pulls the following fields from a large DB:
CUST(this is customer number and all are the same "0333"), [ERR 1], [ERR 2], [ERR 3] and then several fields with different costs in them.
ERR 1, ERR 2, ERR 3 will contain either an error code or will be null.
I'm trying to come up with a query that will look like:
Code:
Count of Err(If not null) | SumCost1 | SumCost2 | SumCost3
ERR 1
ERR 2
ERR 3
I'm completely stuck. I know there should be a way to get this done but it's been so long I just can't get going. Any help would be greatly appreciated.