L
Lisa Reber
Hi - Have downloaded the sample database "RptSmp97.mdb".
It includes a nifty sample "Setting Filter/Filter On
from a pop-up form"
1) I've copied this with partial success.
2) I know basically nothing about SQL.
3) The fields I want to select by are combo boxes.
Had posted this on 4/21 under the Forms group and got a
good answer from John Vinson, but he was unable to reply
to my latest post.
The report source query is:
SELECT DISTINCTROW Products.ProductName,
Suppliers.SupplierCode, Products.VendorPart,
Categories.CategoryName, Products.UnitPrice,
Products.SellPrice, Products.[Tagged?]
FROM Suppliers INNER JOIN (Categories RIGHT JOIN Products
ON Categories.CategoryID = Products.CategoryID) ON
Suppliers.SupplierID = Products.SupplierID
ORDER BY Products.ProductName;
I want to be able to filter by "supplier" and/or
"category" and/or "tagged?" but because(?) they are combo
boxes, I get the error message
Syntax error (missing operator) in query
expression '([Tagged?] ="-1" A)'.
or some variation of it.
JOhn's reply was "Lose the quote marks. They work when the
field is a String but are prohibited when the field is
numeric." I"ve been trying, but wonder which quote marks?
I'm now getting the same message no matter which filter
I try to use. "Tagged?" is a yes/no field, so Access
considers it 0,-1. I eliminated that option, and I get
Syntax error (missing operator) in query
expression '([VendorName] ="XXXX" A)'. Is this because the
vendor name combobox shows my alpha vendor ID, it is still
askingfor numeric data, i.e. vendor ID autonumber?
Can anybody out there please help? Thanks in advance.
Regards, Lisa
It includes a nifty sample "Setting Filter/Filter On
from a pop-up form"
1) I've copied this with partial success.
2) I know basically nothing about SQL.
3) The fields I want to select by are combo boxes.
Had posted this on 4/21 under the Forms group and got a
good answer from John Vinson, but he was unable to reply
to my latest post.
The report source query is:
SELECT DISTINCTROW Products.ProductName,
Suppliers.SupplierCode, Products.VendorPart,
Categories.CategoryName, Products.UnitPrice,
Products.SellPrice, Products.[Tagged?]
FROM Suppliers INNER JOIN (Categories RIGHT JOIN Products
ON Categories.CategoryID = Products.CategoryID) ON
Suppliers.SupplierID = Products.SupplierID
ORDER BY Products.ProductName;
I want to be able to filter by "supplier" and/or
"category" and/or "tagged?" but because(?) they are combo
boxes, I get the error message
Syntax error (missing operator) in query
expression '([Tagged?] ="-1" A)'.
or some variation of it.
JOhn's reply was "Lose the quote marks. They work when the
field is a String but are prohibited when the field is
numeric." I"ve been trying, but wonder which quote marks?
I'm now getting the same message no matter which filter
I try to use. "Tagged?" is a yes/no field, so Access
considers it 0,-1. I eliminated that option, and I get
Syntax error (missing operator) in query
expression '([VendorName] ="XXXX" A)'. Is this because the
vendor name combobox shows my alpha vendor ID, it is still
askingfor numeric data, i.e. vendor ID autonumber?
Can anybody out there please help? Thanks in advance.
Regards, Lisa