Generating an updated report based on new records added

spatel

New Member
Joined
Sep 22, 2004
Messages
14
Hello,

I have a report which is based on a crosstab qry. The cross tab query gets updated everytime a new payperiod payroll data file is added to its respective table; however my report dosen't reflect the changes with the new data.

Basically, everytime I add a new payperiod file, it creates a new column in the table for that payperiod which then get reflected in my cross-tab query. So If I had payperiod 01/10/04 initially and then if I add 01/24/04, it updates it in the table and then the cross-tab query but in the report it only has payperiod 01/10/04 because thats the only column existed originally when I created that report via the wizard.

How can I get the report to run so it captures all the columns currently existed in the cross-table query.

thanks
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi,

this is one of the limitations of Access where you create a report on a crosstab query - the column names in the query depend on the data but the report needs fixed variable names.

There are ways around this but you have to have data formats that support what you are trying to do. Another fellow had a similar problem and we eventually got there : see this post. Keep in mind that some of the earlier posts in that thread weren't 100% helpful.

The main thrust of it is that you need to have a "dynamic" column variable name in your crosstab query that can then get passed through to the report in a fixed way. To do this you need to work out the last period (using max or dmax), then select the x (pick a number) number of periods you want on your report and give them column names that will fit on your report such as "last period", "period - 1" etc.

HTH, Andrew. :)
 
Upvote 0

Forum statistics

Threads
1,221,819
Messages
6,162,155
Members
451,749
Latest member
zack_ken

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