I have 3 fields: [CreatedDateTime]
, [ClosedDateTime]
and [TAT]
.
Default value of CreatedDateTime is =Now()
so everytime a new record is added this field is auto-populated with the current datetimestamp.
Now the 3rd field needs to contain the running turn around time.
While CloseDateTime is still empty, it should contain the difference of Now()
and the [CreatedDateTime]
field. Else it should contain the difference of [ClosedDateTime]
and [CreatedDateTime]
.
I tried using the Calculated Field type but it does not allow Now()
as a function.
And so I tried Before Change event Set Field using below formula on the Value field:
IIF([ClosedDateTime]="",Now()-[CreatedDateTime],[ClosedDateTime]-[CreatedDateTime])
It accepts the formula but I get an error:
Field Cannot be Update
Before I try anything else, is there a way to do this in Access?
Or maybe there is a simpler solution?