B
Ben Bayliss
Hi All,
I'm having a problem fixing this query.
Basically as the code suggests, I'd like to construct a query's
parameters on the fly depending on what the user chooses to search by.
It works as far as all of the fields that HAVE to contain data in the
table (Catagory, Manufacturer, Product, Building, Room, Status) return
correctly. I'm having problems with the remaining fields, where Null is
a valid entry in the master table (some items dont have serial numbers,
we dont remember where we bought certain items etc..).
Can someone please suggest how to amend this code to return null results
from the table when no parameter is specified. Obviously the amendment
needs to go into the IsNull=TRUE portion of each parameter, since I *DO
NOT* want null results returning if the user has specified a search
parameter.
I don't think it's very hard but I think I've been putting my brackets
in the wrong places etc.. The code is attached below.
Thanks very much,
Ben.
I'm having a problem fixing this query.
Basically as the code suggests, I'd like to construct a query's
parameters on the fly depending on what the user chooses to search by.
It works as far as all of the fields that HAVE to contain data in the
table (Catagory, Manufacturer, Product, Building, Room, Status) return
correctly. I'm having problems with the remaining fields, where Null is
a valid entry in the master table (some items dont have serial numbers,
we dont remember where we bought certain items etc..).
Can someone please suggest how to amend this code to return null results
from the table when no parameter is specified. Obviously the amendment
needs to go into the IsNull=TRUE portion of each parameter, since I *DO
NOT* want null results returning if the user has specified a search
parameter.
I don't think it's very hard but I think I've been putting my brackets
in the wrong places etc.. The code is attached below.
Thanks very much,
Ben.