Calculations In Report

R

rohan.berry

Hi there,

I'm struggling to find information on how to use VBA to iterate over
the data in a report to perform calculations on the data. My issue is
that i need to perform calucations row by row that use the Sum of a
column. At the time that it tries to execute the row's calculation, it
cannot know what the sum of this column is going to be. Due to this, i
would prefer to perform the calculations post-load of the report by
using VBA.

Any pointers would be greatly appreciated.
 
C

Carl Rapson

Hi there,

I'm struggling to find information on how to use VBA to iterate over
the data in a report to perform calculations on the data. My issue is
that i need to perform calucations row by row that use the Sum of a
column. At the time that it tries to execute the row's calculation, it
cannot know what the sum of this column is going to be. Due to this, i
would prefer to perform the calculations post-load of the report by
using VBA.

Any pointers would be greatly appreciated.

I don't think there's any way within a report to perform calculations like
that after the report is finished loading. Assuming the report is based on a
query, you could open a recordset using that query and perform your
calculations. This would be completely independent of the report. You can
use DSum against the same query to get the sum of a particular column.

Carl Rapson
 
C

Chuck

Hi there,

I'm struggling to find information on how to use VBA to iterate over
the data in a report to perform calculations on the data. My issue is
that i need to perform calucations row by row that use the Sum of a
column. At the time that it tries to execute the row's calculation, it
cannot know what the sum of this column is going to be. Due to this, i
would prefer to perform the calculations post-load of the report by
using VBA.

Any pointers would be greatly appreciated.

Do you mean a rolling sum?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top