Is there a special Reason your using IIF in the Query? Depending on the size of the DB this could get extremely slow. I would recommend the following. First in a VBA Module put in the following:
Code:
Public function ExpirationDate(byref strday as string) as date
Select Case strday
Case is = "Sun", is = "Mon", Is = "Tues", Is = "Wed"
ExpirationDate = DateAdd("d",9,Date)
Case is = "Thu", is = "Fri"
ExpirationDate = DateAdd("d",11,Date)
Case is = "Sat"
ExpirationDate = DateAdd("d",10,Date)
End Select
end Function
Then in your query put this in a column: Expdate:ExpirationDate([Dayofweek])