danomaniac
Programmer
Hey gang,
I'm having trouble with a query statement.
Expr2: IIf([forms]![frmName]![checkbox1]=True,[EndTime] Is Null,[EndTime] Is Null Or <[forms]![frmName]![txtEndTime])
If the checkbox is checked, the query works and returns only records with no EndTime, but if the checkbox is not checked, I get no records at all. I want all records that are either null or less than txtEndTime.
I know I'm close, but can't seem to close the deal. Any help would be appreciated.
Thanks.
Dan
"It's more like it is now, than it ever has been."
I'm having trouble with a query statement.
Expr2: IIf([forms]![frmName]![checkbox1]=True,[EndTime] Is Null,[EndTime] Is Null Or <[forms]![frmName]![txtEndTime])
If the checkbox is checked, the query works and returns only records with no EndTime, but if the checkbox is not checked, I get no records at all. I want all records that are either null or less than txtEndTime.
I know I'm close, but can't seem to close the deal. Any help would be appreciated.
Thanks.
Dan
"It's more like it is now, than it ever has been."