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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating a sum on a form

Status
Not open for further replies.

lisagippe

Technical User
Jan 25, 2006
36
US
I can't get a text box to calculate correctly. I have 4 text boxes Sick, Vac, Flt and Other. I need another text box, Reg Hrs, to have this equation in it
=80-sum([Sick]+[Vac]+[Sick]+[Other])

Then another text box that will show the Total Hrs
=[Reg Hrs]+ (Sum([Sick]+[Vac]+[Flt]+[Other])

Any ideas?

 
=80-([Sick]+[Vac]+[Sick]+[Other])
Order of Operations.

=[Reg Hrs]+ ([Sick]+[Vac]+[Flt]+[Other]) Note:( ) not needed

 
You rock! Thank you so much it worked. I figured it was somehting I was doing wrong :)
 
Stupid question, but why are you using the [Sick] field twice?
 

er, forgive the echo, I was also wondering about the [Sick] field being used twice. Is it really Sick1 and Sick2 (or something like that?)

Tim

[blue]______________________________________________________________
I love logging onto Tek-Tips. It's always so exciting to see what the hell I
said yesterday.
[/blue]
 
Sorry that was a mistype it should have just been [Sick] [Vac] [Flt] [Other]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top