I'm trying to make this criteria to work in a query that has a datefield called "datesolved". The Criteria points to a opened form that has a group called "frame37" with 3 options. The value "1" if selected should return only the NULL values in the date field. If Value is "2" should return whatever is NOT NULL in the date field, otherwise (="3"), should return NULLS and NOT NULL dates in the "datesolved" field. Here is what I wrote:
IIf(([Forms]![CP_statd]![frame37])=1,Is Null,(IIf(([Forms]![CP_statd]![frame37])=2,Is Not Null,[CP_main].[datesolved])))
ACCESS automatically chages to:
IIf(([Forms]![CP_statd]![frame37])=1,([CP_main].[datesolved]) Is Null,(IIf(([Forms]![CP_statd]![frame37])=2,([CP_main].[datesolved]) Is Not Null,[CP_main].[datesolved])))
This is not working because it does not returning the records that the date fields are NUll.
Thanks for any help.
IIf(([Forms]![CP_statd]![frame37])=1,Is Null,(IIf(([Forms]![CP_statd]![frame37])=2,Is Not Null,[CP_main].[datesolved])))
ACCESS automatically chages to:
IIf(([Forms]![CP_statd]![frame37])=1,([CP_main].[datesolved]) Is Null,(IIf(([Forms]![CP_statd]![frame37])=2,([CP_main].[datesolved]) Is Not Null,[CP_main].[datesolved])))
This is not working because it does not returning the records that the date fields are NUll.
Thanks for any help.