L
lrowley
I have 3 fields; admissiondate, transferdate, dischargedate. The
admissiondate will always have data, depending on whether it was a transfer
or discharge one of these will be blank. I want to return total of days
stayed if what was a transfer or discharge
This is the statement I tried but it just returns -1
=IIf([dischargedate] Is Not Null,[dischargedate]-[admitdate]) Or IIf(
[transferdate] Is Not Null,[transferdate]-[admitdate])
admissiondate will always have data, depending on whether it was a transfer
or discharge one of these will be blank. I want to return total of days
stayed if what was a transfer or discharge
This is the statement I tried but it just returns -1
=IIf([dischargedate] Is Not Null,[dischargedate]-[admitdate]) Or IIf(
[transferdate] Is Not Null,[transferdate]-[admitdate])