I have a data entry form (frmHourEnter) where hours are entered a TextBox (Hours_Worked). The next tabbed TestBox (txtHrsTotal) gives a running total of hours – the code in Control Source being:
But this only gives the running total up to the previous entry.
How can I get the running total to include the last entry into “Hours_Worked” i.e on exiting this textbox)?
Thanks Sandy
Code:
=DSum("Hours_Worked","tblHourEnter","Staff_ID =" & [Forms]![frmHourEnter]![Staff_ID] & " AND Week_No=" & [Forms]![frmHourEnter]![txtDateCalc])
How can I get the running total to include the last entry into “Hours_Worked” i.e on exiting this textbox)?
Thanks Sandy