Hi I am fairly new to access and only just beginning to work with creating my own database.
I have three fields, the referral date, the visit date and the joint visit date.
I am trying to create an expression that will imput a date into the joint visit box based on whether the visit date box is filled in or not. For example if the referral box is filled in then but not the visit date then the joint visit box will come up with a date 30 days after the one in the referral box. but if the visit date box is filled in then the joint visit box will show a date ten days after the date in the visit box.
The code i have written is
however i am not sure where i am going wrong so any help would be greatly appreciated.
Thankyou in advance
I have three fields, the referral date, the visit date and the joint visit date.
I am trying to create an expression that will imput a date into the joint visit box based on whether the visit date box is filled in or not. For example if the referral box is filled in then but not the visit date then the joint visit box will come up with a date 30 days after the one in the referral box. but if the visit date box is filled in then the joint visit box will show a date ten days after the date in the visit box.
The code i have written is
Code:
=iif(isnull[Joint visit]), =DateSerial(Year([Referral]),Month([Referral]),Day([Referral])+30),=DateSerial(Year([Visit]),Month([Visit]),Day([Visit])+10))
Thankyou in advance
Comment