J
Jahlu
I am trying to set up a filter that will allow users to enter specific dates
in "from" and "to" fields and which will then query specific results which
fall within that date range. The catch is that I only want the filter to use
these dates when a specific option button is selected, now... I have tested
my query using the criteria:
Between [StartDateField] and [EndDateField]
and I was able to return the results that I was looking for; however, when I
tried this inside of my IIf statement:
IIf([OptionButtonA]=True,Between [StartDateField] and [EndDateField],"*")
my query will not return any results. I have also tried:
IIf([OptionButtonA]=True,>= [StartDateField] and <=[EndDateField],"*")
but to no avail. I figure that I am either missing something really simple,
or there is a completely different method of going about this that I have not
considered. Any assistance would be greatly appreciated!
P.S. - I can only view information posted here at the newsgroups,
unfortunately, because of firewall issues here at work I am unable to follow
links to research additional code.
in "from" and "to" fields and which will then query specific results which
fall within that date range. The catch is that I only want the filter to use
these dates when a specific option button is selected, now... I have tested
my query using the criteria:
Between [StartDateField] and [EndDateField]
and I was able to return the results that I was looking for; however, when I
tried this inside of my IIf statement:
IIf([OptionButtonA]=True,Between [StartDateField] and [EndDateField],"*")
my query will not return any results. I have also tried:
IIf([OptionButtonA]=True,>= [StartDateField] and <=[EndDateField],"*")
but to no avail. I figure that I am either missing something really simple,
or there is a completely different method of going about this that I have not
considered. Any assistance would be greatly appreciated!
P.S. - I can only view information posted here at the newsgroups,
unfortunately, because of firewall issues here at work I am unable to follow
links to research additional code.