Cross Tab Reporting

Mick_Hart

New Member
Joined
Nov 19, 2004
Messages
32
Okay guys, imnew to access, to bare with me.

I have a database which shows the our predicted calls throughout the month, the fields are as follows -

| Date | Time | Client | Station | Est Calls |

I have a crosstab query, (based on a date range) set up display the information colums.

| Date | Station | Time | Sum of Est Calls | Client1 | Client 2 | Client3 |

With Est Calls being shown benethe each of the clients.
This all works fine

Ive build a report to display this information, but have come across a problem.

If i have say 3 clients, 1, 2 ,3 - and the date range only finds say clients 1 and 2, i get an error when i run the report -
The Microsoft Jet database engine does not recognize 'client 3' as a valid field name or expression.

Does anyone know how i can get around this problem?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I imagine in your report, you have a subreport that gets it's data from your crosstab query.

Try this:
Open the main report, right click on the subreport and change it's source object from the subreport to the crosstab query itself (you should be able to pick it from a list).

What's happening is, when you make the subreport, you reference a field name generated in the crosstab query that's not always going to be there, since crosstab queries have dyanamic field names. By having a subquery instead of a subreport, you don't need to explicitly reference any fields, the subquery will represent exactly what's in the crosstab query.
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,248
Members
451,756
Latest member
tommyw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top