In Access 2000, I have a combo box in a sub form. The recordset of the combo box is limited by criteria form the main form as follows:
SELECT DISTINCT tblProduct.ProductId, tblProduct.ProductDescription, tblOrganisationOrderProduct.OrganisationOrderId
FROM tblProduct INNER JOIN tblOrganisationOrderProduct ON tblProduct.ProductId = tblOrganisationOrderProduct.ProductId
WHERE (((tblOrganisationOrderProduct.OrganisationOrderId)=[Forms]![frmOrganisation]![frmOrganisationOrder].[Form]![OrganisationOrderId]))
ORDER BY tblProduct.ProductDescription;
My problem is that I need to enter a ProductID that does not appear on the main form. I have tried to enter the correct data in the underlying table, but when I open the form containing the combo box I can see the records but the combo box is blank!
How can I show the show the record in the combo box, but keep the criteria?
SELECT DISTINCT tblProduct.ProductId, tblProduct.ProductDescription, tblOrganisationOrderProduct.OrganisationOrderId
FROM tblProduct INNER JOIN tblOrganisationOrderProduct ON tblProduct.ProductId = tblOrganisationOrderProduct.ProductId
WHERE (((tblOrganisationOrderProduct.OrganisationOrderId)=[Forms]![frmOrganisation]![frmOrganisationOrder].[Form]![OrganisationOrderId]))
ORDER BY tblProduct.ProductDescription;
My problem is that I need to enter a ProductID that does not appear on the main form. I have tried to enter the correct data in the underlying table, but when I open the form containing the combo box I can see the records but the combo box is blank!
How can I show the show the record in the combo box, but keep the criteria?