G
Guest
I have a control on a form which holds a calculated value. How can I take this value and update a table with it
tia
jeff
tia
jeff
this value and update a table with it?JMorrell said:I have a control on a form which holds a calculated value. How can I take
I have a control on a form which holds a calculated value. How can I take this value and update a table with it?
tia,
jeff
I have a control on a form which holds a calculated value. How can I take this value and update a table with it
jef
Now on to my next situation. I have a report, which is fed by a query. On the form I have a text box whos control source is =IIf([leavetype]="S","([compsickbal]=[compsickbal]-[leavehours])",[tblleavebal.sickbal]). I can rename as needed, but if leavetype = "S", how can I calculate compsickbal based on a value of itself?
You guys don't get paid enough, you really don't.
with you... said:This iif statement, now that it's in the query, works exactly like it should.
I have to wonder though, how am I going to "capture" a month-end balance of leave hours.
= DateSerial(Year(Date()), Month(Date()) - 1, 1) AND < DateSerial(Year(Date()), Month(Date()), 1)
I should have a balance of 310 hours. According to this iif statement I now have a balance of 311 hours. It took that 5 hours and subtracted it from the original 316 hours, not the already calculated value of 315 hours. This is one reason why I was wanting to hold on to a calculated value. I think it would also help in adding any accrued leave hours at the end of each month. Am I asking Access to do more than it's supposed to do?
I should have a balance of 310 hours. According to this iif statement I now have a balance of 311 hours. It took that 5 hours and subtracted it from the original 316 hours, not the already calculated value of 315 hours. This is one reason why I was wanting to hold on to a calculated value. I think it would also help in adding any accrued leave hours at the end of each month. Am I asking Access to do more than it's supposed to do