I need to record training details of employees using Access DB. For this, i've two tables ..one is empinfo containing following fields:
EmpID, Name, Desig, Dept, TotalTrHrs, TrHrsAvail, TrHrsBal
and the other one is TrDetails having the info:
EmpID,TrTitle,TrDate,TrDurationHrs,TrVenue,TrResources
i've designed a main form in access displaying Emp Info and its associated subform as Tr Details.
The forms works fine.
Now wht i need is that as soon as i enter TRDurationHrs (available in sub form) and press <Enter> to move on to next field, TRHrsAvail and TrHrsBal (available on main form) should get updated themselves with the values given underneath:
TRHrsAvail = cumulative sum of TRDurationHrs
TrHrsBal = TotalTrHrs - cumulatuve sum of TRDurationHrs
Wht control property do i need to set on TRDurationHrs field to get the work done?
EmpID, Name, Desig, Dept, TotalTrHrs, TrHrsAvail, TrHrsBal
and the other one is TrDetails having the info:
EmpID,TrTitle,TrDate,TrDurationHrs,TrVenue,TrResources
i've designed a main form in access displaying Emp Info and its associated subform as Tr Details.
The forms works fine.
Now wht i need is that as soon as i enter TRDurationHrs (available in sub form) and press <Enter> to move on to next field, TRHrsAvail and TrHrsBal (available on main form) should get updated themselves with the values given underneath:
TRHrsAvail = cumulative sum of TRDurationHrs
TrHrsBal = TotalTrHrs - cumulatuve sum of TRDurationHrs
Wht control property do i need to set on TRDurationHrs field to get the work done?