Hi, I could use a little help if anyone's got the time,
I've got a simple query that I'm trying to get some simple results from:
If the Main Form [Date_Frm] field is null, then return all the date form the table.
ELSE, if the [Date_Frm] field contains a date, return the Between dates criteria.
Here is the criteria that I'm using in my query:
IIf(IsNull([Forms]![Main_Form]![Search_GSIS]![Date_Frm]);[ArrivalSCH];Between [Forms]![Main_Form]![Search_GSIS]![Fecha_Frm] And [Forms]![Main_Form]![Search_GSIS]![Date_To])
Issue:
If the Date_Frm field is blank, no problem, the results are showing. But when the Date_Frm field contains a valid date, the results from my query are always blank.
Note:
Using the "Between [Forms]![Main_Form]![Search_GSIS]![Fecha_Frm] And [Forms]![Main_Form]![Search_GSIS]![Date_To]" criteira WITHOUT IIF works fine!
Thanks for anyone's time
I've got a simple query that I'm trying to get some simple results from:
If the Main Form [Date_Frm] field is null, then return all the date form the table.
ELSE, if the [Date_Frm] field contains a date, return the Between dates criteria.
Here is the criteria that I'm using in my query:
IIf(IsNull([Forms]![Main_Form]![Search_GSIS]![Date_Frm]);[ArrivalSCH];Between [Forms]![Main_Form]![Search_GSIS]![Fecha_Frm] And [Forms]![Main_Form]![Search_GSIS]![Date_To])
Issue:
If the Date_Frm field is blank, no problem, the results are showing. But when the Date_Frm field contains a valid date, the results from my query are always blank.
Note:
Using the "Between [Forms]![Main_Form]![Search_GSIS]![Fecha_Frm] And [Forms]![Main_Form]![Search_GSIS]![Date_To]" criteira WITHOUT IIF works fine!
Thanks for anyone's time