I have a query that sometimes need to have last weeks Data versus this weeks data So I put a check box on my reports menu and made this IIf Statement
IIf([Forms]![ReportsMenu]![Chkwk]=False,Between DateAdd("d",-6-Weekday(Date(),2),Date()) And DateAdd("d",-Weekday(Date(),2),Date()),Between DateAdd("d",+1-Weekday(Date(),2),Date()) And DateAdd("d",+7-Weekday(Date(),2),Date()))
And obviously it doesn't work. It won't display anything. I can do it with either statements the true or false but doesn't work with the iif statement
Thanks for your help
IIf([Forms]![ReportsMenu]![Chkwk]=False,Between DateAdd("d",-6-Weekday(Date(),2),Date()) And DateAdd("d",-Weekday(Date(),2),Date()),Between DateAdd("d",+1-Weekday(Date(),2),Date()) And DateAdd("d",+7-Weekday(Date(),2),Date()))
And obviously it doesn't work. It won't display anything. I can do it with either statements the true or false but doesn't work with the iif statement
Thanks for your help