Parariddle
Registered User.
- Local time
- Today, 21:15
- Joined
- Jan 28, 2009
- Messages
- 34
I am a heavy Business Objects user and coming back to access has meant changing my syntax. I have written an IIF statement with DateAdd but its returning an error.
I would be grateful if someone could have a look and let me know what I need to change !
Thank you !
NextDue2:IIF( [Completed] =True And [Frequency] ="Daily",DateAdd("d",1, [Next Due Date] ,IIF( [Completed] =True And [Frequency] = "Weekly",DateAdd("w",1, [Next Due Date] ,IIF( [Completed] = True And [Frequency] = "Monthly",DateAdd("M",1, [Next Due Date] ))))
I would be grateful if someone could have a look and let me know what I need to change !
Thank you !
NextDue2:IIF( [Completed] =True And [Frequency] ="Daily",DateAdd("d",1, [Next Due Date] ,IIF( [Completed] =True And [Frequency] = "Weekly",DateAdd("w",1, [Next Due Date] ,IIF( [Completed] = True And [Frequency] = "Monthly",DateAdd("M",1, [Next Due Date] ))))