Hello everyone,
I need help with this. Forgive me if this has been asked before, but I could not find a correct solution when googling.
I have a query that has a DateArrived field. In it's criteria, I wanted to return records equal or between certain dates if a condition has been met, but returns all the records if the condition was not met.
Code:
Like IIf([TempVars]![tempType]="Dates",>=[Forms]![frmSearch]![txtStartDate] And <=[Forms]![frmSearch]![txtEndDate],"*")
The "*" value works and will return all records when the condition was not met, however, when the condition has been met or true, no records are returned.
So basically, I'm asking how to correctly put multiple "trueparts" in an IIf statement?
Thank you for your time.