D
dogman_2000
I am trying to do a QBF and am having a problem when I try to use the
BETWEEN operator.
I have 2 text boxes on my form TxtFrom and TxtTo. The user might enter
values into both boxes or leave one of the 2 blank. Is still however
want the recorset to return some data.
At the moment I am typing the following into my query criteria field:
Between [Forms]![frmReportParameters]![TxtFrom ] And
[Forms]![frmReportParameters]![TxtTo] Or
[Forms]![frmReportParameters]![TxtFrom ]
or[Forms]![frmReportParameters]![TxtTo] is null.
This doesn't work any everytime I close the query then open it the
entire view changes.
I works if I am only working with one text box in a field and not using
BETWEEN but i have tried everything and no luck!!
Any help would be really appreciated.
Thanks in advance
Andrew
BETWEEN operator.
I have 2 text boxes on my form TxtFrom and TxtTo. The user might enter
values into both boxes or leave one of the 2 blank. Is still however
want the recorset to return some data.
At the moment I am typing the following into my query criteria field:
Between [Forms]![frmReportParameters]![TxtFrom ] And
[Forms]![frmReportParameters]![TxtTo] Or
[Forms]![frmReportParameters]![TxtFrom ]
or[Forms]![frmReportParameters]![TxtTo] is null.
This doesn't work any everytime I close the query then open it the
entire view changes.
I works if I am only working with one text box in a field and not using
BETWEEN but i have tried everything and no luck!!
Any help would be really appreciated.
Thanks in advance
Andrew