G
Guest
I have a form with a combo box, and I need to use the selection made in the
combo box in a query. ( the combo box have a list of names and I need to
build a query selecting the id of the chosen name)
In the query criteria I wrote :[forms]![form name]![column name]
When I open the query ( after doing my selection in the combo box), a dialog
box jump and ask me to enter the variable.
But the variable I wanted was the one I chose in the combo box……
Why does this window jump? What did I do wrong?
the query code:
SELECT tblOrganisms.TaxID
FROM tblOrganisms
WHERE (((tblOrganisms.Organism)=[Forms]![frmCompare2Lists]![cmbOrganism1]));
Thanks for the help, I’m still new in this
Dana.
combo box in a query. ( the combo box have a list of names and I need to
build a query selecting the id of the chosen name)
In the query criteria I wrote :[forms]![form name]![column name]
When I open the query ( after doing my selection in the combo box), a dialog
box jump and ask me to enter the variable.
But the variable I wanted was the one I chose in the combo box……
Why does this window jump? What did I do wrong?
the query code:
SELECT tblOrganisms.TaxID
FROM tblOrganisms
WHERE (((tblOrganisms.Organism)=[Forms]![frmCompare2Lists]![cmbOrganism1]));
Thanks for the help, I’m still new in this
Dana.