M
Mike Webb
I am a newbie; use Access 2K2 on WinXP for a non-profit. Trying to learn as
I go.
I am learning QBF (trying to) and found this KB article. The problem is
that when I put in query criteria as in the article (i.e.
"[Forms]![QBF_Form]![WhatCustomer] Or [Forms]![QBF_Form]![WhatCustomers] Is
Null" -- for which I directed to place on all one line), MS Access changes
it on Saving the query. The SQL of it is below:
SELECT Orders.CustomerID, Orders.EmployeeID, Orders.OrderID,
Orders.OrderDate
FROM Orders
WHERE (((Orders.CustomerID)=[Forms]![QBF_Form]![WhatCustomer])) OR
((([Forms]![QBF_Form]![WhatCustomer]) Is Null)) OR
(((Orders.EmployeeID)=[Forms]![QBF_Form]![WhatEmployee])) OR
((([Forms]![QBF_Form]![WhatEmployee]) Is Null))
ORDER BY Orders.CustomerID, Orders.EmployeeID;
I get different results when running some of the query parameters than the
article says I should.
Although the article implies this works on Access 2K2, I think it may not,
at least as written.
What went wrong, and what SHOULD it have been?
TIA,
Mike
I go.
I am learning QBF (trying to) and found this KB article. The problem is
that when I put in query criteria as in the article (i.e.
"[Forms]![QBF_Form]![WhatCustomer] Or [Forms]![QBF_Form]![WhatCustomers] Is
Null" -- for which I directed to place on all one line), MS Access changes
it on Saving the query. The SQL of it is below:
SELECT Orders.CustomerID, Orders.EmployeeID, Orders.OrderID,
Orders.OrderDate
FROM Orders
WHERE (((Orders.CustomerID)=[Forms]![QBF_Form]![WhatCustomer])) OR
((([Forms]![QBF_Form]![WhatCustomer]) Is Null)) OR
(((Orders.EmployeeID)=[Forms]![QBF_Form]![WhatEmployee])) OR
((([Forms]![QBF_Form]![WhatEmployee]) Is Null))
ORDER BY Orders.CustomerID, Orders.EmployeeID;
I get different results when running some of the query parameters than the
article says I should.
Although the article implies this works on Access 2K2, I think it may not,
at least as written.
What went wrong, and what SHOULD it have been?
TIA,
Mike