T
Tim
Hi folks,
I need an urgent help for a problem on a form.
I have a table called tblTest that has the following value:
ID Field1
1 Tim
2
3 Tom
And I have a query called qryTest:
SELECT tblTest.ID, tblTest.Field1
FROM tblTest
WHERE (((tblTest.Field1)=IIf([forms]![frmTest]![text0]="",
([tblTest].[Field1]) Is Null,[forms]![frmTest]![text0])));
If the user input a value in [forms]![frmTest]![text0],
then the query worked fine. If the user didn’t input any
value, the query returned nothing which was not I
expected. I expected the query would return ID=2 and
Field1= .
Could anyone help me to solve the problem?
Thanks in advance.
Tim.
I need an urgent help for a problem on a form.
I have a table called tblTest that has the following value:
ID Field1
1 Tim
2
3 Tom
And I have a query called qryTest:
SELECT tblTest.ID, tblTest.Field1
FROM tblTest
WHERE (((tblTest.Field1)=IIf([forms]![frmTest]![text0]="",
([tblTest].[Field1]) Is Null,[forms]![frmTest]![text0])));
If the user input a value in [forms]![frmTest]![text0],
then the query worked fine. If the user didn’t input any
value, the query returned nothing which was not I
expected. I expected the query would return ID=2 and
Field1= .
Could anyone help me to solve the problem?
Thanks in advance.
Tim.