Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I sum this Field?

Status
Not open for further replies.

Drisconsult

Technical User
Feb 20, 2005
79
US
I have the following Field;

Name: PENALTYCUSTOMER
Control Source: =[DAYS]*[COST]
Format: Currency

Days are equal to the number of days overdue
Cost is the daily cost for each item overdue

How do I sum this Field? I am at my wits end.

Regards
Terence
 
Hi!

=Sum([Days]*[Cost])

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Hello Jeff

I have tried this of course but to no avail.
 
Hello Jeff

Forgot to tell you that the Field Cost is being summed elsewhere.

Regards
Terence
 
My apologies for not being clear. Here is the problem. I have the following Fields in this order

Name: Numberofdays
Control Source: =[Datein]-[Dateout]-1
Format: Currency

Then:

Name: Penaltydays
Control Source: =[Numberofdays]*[Penalty]
Format: Currency

How do I sum Penaltydays?

I have tried using the following:

Name: Totalpenalty
Control Source: =sum([Numberofdays]*[Penalty])
Format: Currency

But get an error messsage. I have also tried:

Name Totalpenalty
Control Source: =sum([Penaltydays])

But get an error message. Help

Regards
Terence

 
Terence
You're gonna have to give more information here, What error message are you getting, can you paste the text of the message here.


I love deadlines. I like the whooshing sound they make as they fly by
Douglas Adams
(1952-2001)
 
And this ?
=Sum([Penalty]*([Datein]-[Dateout]-1))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Dear PH

Your line of code:

=Sum([Penalty]*([Datein]-[Dateout]-1))

Worked beautifully. Can't thank you enough. Will come back for more when the need arises.

Regards
Terence
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top