Woodman650
Technical User
hey guys,
I'm no whiz with SQL, so I have no idea what to do with the code below.
Here is the original statement:
basically, it puts a default value of "<all>" in a combo box and allows all records to be searched. I've deleted the CastID column and tblCast table though... so now I just have a query called qryClientData and a column being pulled through it called Cast. the code now in the combobox is:
My question is... can anyone help me out as far as formatting this new code to achieve the same result as the original? (default value of "<all>" in the combobox). thank you
I'm no whiz with SQL, so I have no idea what to do with the code below.
Here is the original statement:
Code:
SELECT 0 as CastID, "<all>" as Cast FROM tblzNull UNION ALL SELECT tblCast.CastID, tblCast.Cast FROM tblCast
ORDER BY Cast;
basically, it puts a default value of "<all>" in a combo box and allows all records to be searched. I've deleted the CastID column and tblCast table though... so now I just have a query called qryClientData and a column being pulled through it called Cast. the code now in the combobox is:
Code:
SELECT qryClientData.Cast
FROM qryClientData
WHERE (((qryClientData.Cast)<>"IsNull"))
ORDER BY qryClientData.Cast;
My question is... can anyone help me out as far as formatting this new code to achieve the same result as the original? (default value of "<all>" in the combobox). thank you