U
Ulcom
Hi
I have a query named QR TEST with ten fields and I need to give a criteria
to one of the field. This field is named "NUMBER"
I have 2 different forms let say Form A and Form B. Each one of them
contain a field named "NUMBER"
When I open Form A, I want, when I click a button that the criteria for the
field "NUMBER" in the query QR TEST change for
[Forms]![Form A]![NUMBER]
And when I open Form B, when I click a button the criteria for the field
"NUMBER" in the query QR TEST change for
[Forms]![Form B]![NUMBER].
I Have tried to put both criterias in the query like [Forms]![Form
A]![NUMBER] OR [Forms]![Form B]![NUMBER]
but when I open the Query a box open asking me NUMBER then if I click OK
then the query open with records.
So how can I input criteria to a query from a form
thanks
I have a query named QR TEST with ten fields and I need to give a criteria
to one of the field. This field is named "NUMBER"
I have 2 different forms let say Form A and Form B. Each one of them
contain a field named "NUMBER"
When I open Form A, I want, when I click a button that the criteria for the
field "NUMBER" in the query QR TEST change for
[Forms]![Form A]![NUMBER]
And when I open Form B, when I click a button the criteria for the field
"NUMBER" in the query QR TEST change for
[Forms]![Form B]![NUMBER].
I Have tried to put both criterias in the query like [Forms]![Form
A]![NUMBER] OR [Forms]![Form B]![NUMBER]
but when I open the Query a box open asking me NUMBER then if I click OK
then the query open with records.
So how can I input criteria to a query from a form
thanks