I need to do some simple math with time data but it becomes very complicated when many of these results have to be compared using logical statements (If...Then.., etc.)
I was told in the past that there is no need to save the results of my calculations "because the raw data is already there" and "you need to learn how to program well from the beggining" etc. I understand this but in order to know for sure that my formulas are working well, and that I am doing things right I do need to save the results in a table. Please help me out here. And please don't tell me "you don't have to..." I don't need to be elegant on my programming (yet)
OK. I have:
tblHoursWorked
TimeIn
TimeOut
Lunch
I would like to calculate
TimeWorked =[TimeOut]-[TimeOut]-Nz([Lunch],0)
It works if I enter the formula in a textbox on a form. But how do I save that info on another table, say
tblSummary
HoursWorked
Thanks a lot
Luis
I was told in the past that there is no need to save the results of my calculations "because the raw data is already there" and "you need to learn how to program well from the beggining" etc. I understand this but in order to know for sure that my formulas are working well, and that I am doing things right I do need to save the results in a table. Please help me out here. And please don't tell me "you don't have to..." I don't need to be elegant on my programming (yet)
OK. I have:
tblHoursWorked
TimeIn
TimeOut
Lunch
I would like to calculate
TimeWorked =[TimeOut]-[TimeOut]-Nz([Lunch],0)
It works if I enter the formula in a textbox on a form. But how do I save that info on another table, say
tblSummary
HoursWorked
Thanks a lot
Luis