Within a form, I have a combo box and a list box. Here is the row source for the list box:
SELECT tblWellData.WellID, tblWellData.CurrentWellName, tblWellData.CurrentOperator FROM tblWellData ORDER BY tblWellData.CurrentWellName;
This displays all the records within the table. If I only want the records based on the selection within the combo box, this is the row source:
SELECT tblWellData.WellID, tblWellData.CurrentWellName, tblWellData.CurrentOperator FROM tblWellData WHERE (((tblWellData.CurrentOperator)=[Forms]![frmTestForm]![Combo4])) ORDER BY tblWellData.CurrentWellName;
It displays 0 records. What am I doing wrong?