Phil said:
Is it possible to limit a search criteria in a query to a combo box list?
When I put "[Please enter the search criteria]" in the criteria for a
query based on a table with a combo box the entry must match exactly or
it returns nothing.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Create a form and on that form create a ComboBox w/ that displays the
same data as the ComboBox in the table. In the query use PARAMETERS
like this:
PARAMETERS Forms!FormName!ComboBoxName <data type>;
SELECT...
FROM ...
WHERE column_name = Forms!FormName!ComboBoxName
Substitute your form and column names in the above. The <data type>
should be whatever value is returned from the Combo Box (the Bound
Column data type).
Show the form to the user & have a CommandButton that when clicked,
checks that there is a valid value in the ComboBox and then runs the
query. The query will read the selected value from the ComboBox.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQmKXtoechKqOuFEgEQJzUwCcCHo0NKVVKejvKsyozJCZa8uKlTcAoK4D
9NlnycgY4F7V1XOMaLHD8dqw
=njLK
-----END PGP SIGNATURE-----