A
AndyG
MSAccess03. Scenerio: three text boxes (In; Out; Diff of type date.
User inputs date into 'In', moves to 'Out' and inputs date. I would like the
difference in the dates to do two things 1) populate box 3 'Diff', and also
2) to have the value in the box be written to the db.
I know I can do: DateDiff("d",In,Out) to get the difference,
however, what would the code look like to populate that box?
Would it be on 'Lost Focus' of the Out box? and what I really don't
understand is, even if I somehow put the value of the formula into
the third box, how does that get written to the db if the third box is
using a formula (unbound?)???
Help is greatly appreciated.
User inputs date into 'In', moves to 'Out' and inputs date. I would like the
difference in the dates to do two things 1) populate box 3 'Diff', and also
2) to have the value in the box be written to the db.
I know I can do: DateDiff("d",In,Out) to get the difference,
however, what would the code look like to populate that box?
Would it be on 'Lost Focus' of the Out box? and what I really don't
understand is, even if I somehow put the value of the formula into
the third box, how does that get written to the db if the third box is
using a formula (unbound?)???
Help is greatly appreciated.