G
greg.kylelangley
[Sorry to re-post this, but was offered one solution before by
Vanderghast a while ago telling me to look at
http://www.mvps.org/access/queries/qry0016.htm, but that didn't seem to
do exactly what I wanted (or I couldn't implement it!). Wondered if
anyone had any new ideas.]
I've a database detailing various suppliers [tblSuppliers] and the
things they can do [tblCapabilities]. These are linked by
[tblSupplierCapabilityLink].
I currently have a working search form [frmSearchCapability] allowing
the user to select up to four capabilities from four combo boxes. The
form then updates a list box with all the companies that have ANY ONE
of these capabilities - an OR search.
I need also to provide an AND search - so only the companies that have
ALL the specified capabilities are returned. I'm happy with the results
of this appearing in a different list box, or even a different form,
but I can't get the search to work. The OR search currently has the
following criteria:
[Forms]![frmSearchCapability]![comboCapability] Or
[Forms]![frmSearchCapability]![comboCapability2] Or
[Forms]![frmSearchCapability]![comboCapability3] Or
[Forms]![frmSearchCapability]![comboCapability4].
How can I get the AND search to work in a similar way, ignoring Null
responses?
Any help -very- gratefully received!
Greg
Vanderghast a while ago telling me to look at
http://www.mvps.org/access/queries/qry0016.htm, but that didn't seem to
do exactly what I wanted (or I couldn't implement it!). Wondered if
anyone had any new ideas.]
I've a database detailing various suppliers [tblSuppliers] and the
things they can do [tblCapabilities]. These are linked by
[tblSupplierCapabilityLink].
I currently have a working search form [frmSearchCapability] allowing
the user to select up to four capabilities from four combo boxes. The
form then updates a list box with all the companies that have ANY ONE
of these capabilities - an OR search.
I need also to provide an AND search - so only the companies that have
ALL the specified capabilities are returned. I'm happy with the results
of this appearing in a different list box, or even a different form,
but I can't get the search to work. The OR search currently has the
following criteria:
[Forms]![frmSearchCapability]![comboCapability] Or
[Forms]![frmSearchCapability]![comboCapability2] Or
[Forms]![frmSearchCapability]![comboCapability3] Or
[Forms]![frmSearchCapability]![comboCapability4].
How can I get the AND search to work in a similar way, ignoring Null
responses?
Any help -very- gratefully received!
Greg