
Originally Posted by
oleBucky
That worked exactly as I envisioned! I will add it to my Terribly Twisted Query Tale and work on the next step. I have three list boxes and one text box I am trying to integrate. I will post if

I run into a problem.
One little glitch. I originally plagiarized the SQL as follows:
Code:
SELECT T1.HLBTeamID AS HLBID, T1.TeamName AS HLBName
FROM tblHLBTeams AS T1
ORDER BY HLBName;
UNION
Select "*" AS HLBID, "(All HLB Teams)" AS HLBName
FROM tblHLBTeams AS T1;
This worked until I closed the form then reopened it. Upon reopening, Access opened a message box asking me to "Enter Parameter Value" for HLBName. You could cancel through this, then use the list box as intended. However, I did not want the message box. Out of blissful ignorance I tried reversing the SQL sequence to:
Code:
Select "*" AS HLBID, "(All HLB Teams)" AS HLBName
FROM tblHLBTeams AS T1;
UNION
SELECT T1.HLBTeamID AS HLBID, T1.TeamName AS HLBName
FROM tblHLBTeams AS T1
ORDER BY HLBName;
For whatever reason, this eliminated the message box. Might someone provide insight as to why?