Hi,
I have seen that there are lots of threads about working out the difference between two dates, but I think my question is a little different.
I have a form, on which their are 3 fields, Referral Date ("referraldate", 23/07/2007), Discharged (yes/no field) and discharge date ("dischargedate", 23/07/2007).
I would like there to be a control on the form that shows the length of time a patient has spent in the service. If they have been discharged, it would be dischargedate-referral date. However, if they have not been discharged, it would be today's date - referral date.
How do I go about this? I am still a beginner, so any help would be appreciated.
cheers
Bruce
I have seen that there are lots of threads about working out the difference between two dates, but I think my question is a little different.
I have a form, on which their are 3 fields, Referral Date ("referraldate", 23/07/2007), Discharged (yes/no field) and discharge date ("dischargedate", 23/07/2007).
I would like there to be a control on the form that shows the length of time a patient has spent in the service. If they have been discharged, it would be dischargedate-referral date. However, if they have not been discharged, it would be today's date - referral date.
How do I go about this? I am still a beginner, so any help would be appreciated.
cheers
Bruce