Hi Rick,
First, and most important, point is that you do NOT want to store this data
in another field (column) in your table. It is a calculated value, based on
the contents of two other fields; it should NOT be stored in the table, but
calculated "on-the-fly" as needed. You need a query which will include this
calculated value as a separate field, and you should base any forms/reports
on the query, rather than the table.
Set up a query based on your table, and add another field (column), with the
following expression:
SurviveDays:
IIf(IsNull([Exp]),DateDiff("d",[BMT],Date()),DateDiff("d",[BMT],[Exp]))
This assumes that the names of the fields in your table are "BMT" and "Exp",
respectively; if not, change the fieldnames in the expression. If you want
the survival time in a different format, change the "d" in the two DateDiff
expressions to the interval you require (and change the calculated fieldname
in the query to suit); see Help for the time intervals you can use - they
range from seconds to years ;-).
HTH,
Rob