Hi all im new to both this forum and Access so if this should be posted in a different part of the forum please tell me and I will.
I'm working on creating an electronic library system on access as part of a project and im trying to create an iff function which will look at the date when the book is taken out and then add a month to create a return date. However if the day falls on a saturday or sunday it needs to put the due back date as the monday. This is my code so far but I keep getting an error stating 'the expression you entered is missing a closing parenthesis, bracket (]), or vertical bar'
current code- =iif(weekday(date())=1,Dateadd,("M",1,date())+1,iif(weekday(date())=7,dateadd,("M",1,date()+2,dateadd,("M",1,date())))
As i said im new to access (only been using a couple of months so any help would be very helpful.
I'm working on creating an electronic library system on access as part of a project and im trying to create an iff function which will look at the date when the book is taken out and then add a month to create a return date. However if the day falls on a saturday or sunday it needs to put the due back date as the monday. This is my code so far but I keep getting an error stating 'the expression you entered is missing a closing parenthesis, bracket (]), or vertical bar'
current code- =iif(weekday(date())=1,Dateadd,("M",1,date())+1,iif(weekday(date())=7,dateadd,("M",1,date()+2,dateadd,("M",1,date())))
As i said im new to access (only been using a couple of months so any help would be very helpful.