L
Liat
Hi,
I created a query that takes all the data in a given
range of dates that is selected through a Form in the
following way:
In the Date field, the criteria is :
It works fine, however I would like to put a condition to
this criteria. The user can tick or untick the option to
choose a range of dates. If it isn't selected, I would
like the criteria to be empty
I tried to add to the criteria:
IIf([Forms]![F_Menu]![DateV]=True,([tblTviaHaaraha].
[date])>=[Forms]![F_Menu]![fromDateTa] And
([tblTviaHaaraha].[date])<=[Forms]![F_Menu]![ToDateTa],"")
and it said that this is not a right sentance.
How can I do that?
Thanks a lot,
Liat
I created a query that takes all the data in a given
range of dates that is selected through a Form in the
following way:
In the Date field, the criteria is :
= Forms!myForm!fromDate and <= Forms!myForm!toDate.
It works fine, however I would like to put a condition to
this criteria. The user can tick or untick the option to
choose a range of dates. If it isn't selected, I would
like the criteria to be empty
I tried to add to the criteria:
IIf([Forms]![F_Menu]![DateV]=True,([tblTviaHaaraha].
[date])>=[Forms]![F_Menu]![fromDateTa] And
([tblTviaHaaraha].[date])<=[Forms]![F_Menu]![ToDateTa],"")
and it said that this is not a right sentance.
How can I do that?
Thanks a lot,
Liat