-----Original Message-----
Yes, I would very much appreciate help with the code.
Ok, let's say we have textboxes txtHr, txtMin, txtSec and txtDuration;
the first three are unbound, the last is bound to a Long Integer field
named Duration (which you'll use for your calculations).
In the AfterUpdate event of each unbound textbox put:
Private Sub txtHr_AfterUpdate()
txtDuration = Me!txtHr*3600 + Me!txtMin*60 + Me!txtSec
End Sub
and similarly for txtMin and txtSec. If any of the fields is NULL the
duration will be NULL - so you may want to set the Default property of
the textboxes to 0 so the user can enter (say) 2 hours and get a
correct result.
Then in the Form's Current event:
Private Sub Form_Current()
If Not IsNull(Me![Duration]) Then
Me!txtHr = Me![Duration] \ 3600
Me!txtMin = Me![Duration] \ 60 MOD 60
Me!txtSec = Me![Duration] MOD 60
End If
End Sub
Error trapping, validation of field values (i.e. preventing the user
from entering 125 in the Min textbox) etc. is up to you...
.