I Access 2000, I have the following SQL statement for a conbo box:
SELECT DeliveryDriverId, DeliveryDriver FROM qryDrivers UNION SELECT Ast, Desc FROM tblAsterisk
ORDER BY DeliveryDriver;
If qryDrivers contains no records, the combo box still returns the Ast, Desc FROM tblAsterisk.
What is the correct syntax to have NO records returned by the combo box if qryDrivers doesn't contain any records?
SELECT DeliveryDriverId, DeliveryDriver FROM qryDrivers UNION SELECT Ast, Desc FROM tblAsterisk
ORDER BY DeliveryDriver;
If qryDrivers contains no records, the combo box still returns the Ast, Desc FROM tblAsterisk.
What is the correct syntax to have NO records returned by the combo box if qryDrivers doesn't contain any records?