Calculation in report

S

SJL

Hi, I have a table that has an estimated cost (Est £'s) and actual cost (
Actual Expense) fields. How do I get the report to calculate the difference
please?
 
D

Deepak

Make a select query based on table.
add both the fields to query
and in third column write Diff: estimated cost - actual cost
save the query and make report using wizard and select this query name
Hope this helps
 
S

SJL

Hi Deepak

Thanks, but I get an error message " Expression contains invalid syntax. The
fields are actualy called Cost £'s and Actual Expense. I type in Diff:Actual
Expense-Cost £'s and get that message above. Can you tell what I am doing
wrong please?
 
S

SJL

Hi Deepak. Thanks so much.

Stu

Deepak said:
ok
You can do this
Diff: [tablename]![Actual Expense] - [tablename]![Cost £'s]
since ur field name contain spaces.
for this to work......both fields should be in same table
or both the tables should be linked


SJL said:
Hi Deepak

Thanks, but I get an error message " Expression contains invalid syntax. The
fields are actualy called Cost £'s and Actual Expense. I type in Diff:Actual
Expense-Cost £'s and get that message above. Can you tell what I am doing
wrong please?
 
D

Deepak

ok
You can do this
Diff: [tablename]![Actual Expense] - [tablename]![Cost £'s]
since ur field name contain spaces.
for this to work......both fields should be in same table
or both the tables should be linked
 

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