Hi,
I have the following query as the row source of the Combo Box
SELECT tblElectricalDeliveryCompany.DeliveryCompanyID, tblElectricalDeliveryCompany.OutPutFileRef, tblElectricalDeliveryCompany.OutPutFileRefOrder
FROM tblElectricalDeliveryCompany
WHERE (((tblElectricalDeliveryCompany.OutPutFileRefOrder) Is Not Null))
ORDER BY tblElectricalDeliveryCompany.OutPutFileRefOrder;
I use the DeliveryCompanyID as the bound field for the filter to run an export file.
I need to add an ALL option I have tried the following
SELECT "*" AS DeliveryCompanyID, "ALL" AS OutPutFileRef, 0 AS SortOrder FROM QryOutPutFileRef UNION SELECT DeliveryCompanyID, OutPutFileRef, 1 FROM QryOutPutFileRef
ORDER BY SortOrder, OutPutFileRefOrder;
This Adds the All option but adds an * in the DeliveryCompanyID so I get a data type mismatch
any thoughts on where I am going wrong?
I have the following query as the row source of the Combo Box
SELECT tblElectricalDeliveryCompany.DeliveryCompanyID, tblElectricalDeliveryCompany.OutPutFileRef, tblElectricalDeliveryCompany.OutPutFileRefOrder
FROM tblElectricalDeliveryCompany
WHERE (((tblElectricalDeliveryCompany.OutPutFileRefOrder) Is Not Null))
ORDER BY tblElectricalDeliveryCompany.OutPutFileRefOrder;
I use the DeliveryCompanyID as the bound field for the filter to run an export file.
I need to add an ALL option I have tried the following
SELECT "*" AS DeliveryCompanyID, "ALL" AS OutPutFileRef, 0 AS SortOrder FROM QryOutPutFileRef UNION SELECT DeliveryCompanyID, OutPutFileRef, 1 FROM QryOutPutFileRef
ORDER BY SortOrder, OutPutFileRefOrder;
This Adds the All option but adds an * in the DeliveryCompanyID so I get a data type mismatch
any thoughts on where I am going wrong?