I tried the following and also tried using Between [x] and [x]. But both result in 0 records and when I check the base table there are records.
[Monday], [Tuesday], ect are field names in the table DSRDATES that have dates for the corresponding day of the week.
IIf(Weekday(Now())=2,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday] Or ([Base Table].[Date])=[Thursday] Or ([Base Table].[Date])=[Friday] Or ([Base Table].[Date])=[Saturday] Or ([Base Table].[Date])=[Sunday],IIf(Weekday(Now())=3,[Monday],IIf(Weekday(Now())=4,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday],IIf(Weekday(Now())=5,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday],IIf(Weekday(Now())=6,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday] Or ([Base Table].[Date])=[Thursday],IIf(Weekday(Now())=7,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday] Or ([Base Table].[Date])=[Thursday] Or ([Base Table].[Date])=[Friday]))))))
Any suggestions?
[Monday], [Tuesday], ect are field names in the table DSRDATES that have dates for the corresponding day of the week.
IIf(Weekday(Now())=2,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday] Or ([Base Table].[Date])=[Thursday] Or ([Base Table].[Date])=[Friday] Or ([Base Table].[Date])=[Saturday] Or ([Base Table].[Date])=[Sunday],IIf(Weekday(Now())=3,[Monday],IIf(Weekday(Now())=4,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday],IIf(Weekday(Now())=5,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday],IIf(Weekday(Now())=6,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday] Or ([Base Table].[Date])=[Thursday],IIf(Weekday(Now())=7,([Base Table].[Date])=[Monday] Or ([Base Table].[Date])=[Tuesday] Or ([Base Table].[Date])=[Wednesday] Or ([Base Table].[Date])=[Thursday] Or ([Base Table].[Date])=[Friday]))))))
Any suggestions?