I have a query for the rowsource of a combo that returns null even though there are matching records. I assign this query in the AfterUpdate event of another control(SeedBra nd). During debugging the references contain the correct criteria but the combo is empty. I've recreated the query in a new query window and with no criteria or if I supply the actual values it returns the records but when I put in the control references and then provide the values it returns null.
Here is the table info:
VarietyID, CropID, SeedCompany, Variety
5, 3, 2, 2020
VarietyID is autonumber, CropID and SeedCompany are LongInteger, and Variety is text.
Here is the SQL:
Thanks for your help!
Here is the table info:
VarietyID, CropID, SeedCompany, Variety
5, 3, 2, 2020
VarietyID is autonumber, CropID and SeedCompany are LongInteger, and Variety is text.
Here is the SQL:
Code:
SELECT tblVarieties.VarietyID, tblVarieties.Variety, tblVarieties.SeedCompany, tblVarieties.CropID FROM tblVarieties WHERE (((tblVarieties.SeedCompany)=[Me].[SeedBrand]) AND ((tblVarieties.CropID)=[Forms]![frmPlantings]![Crop]));
Comment