Okay, so after spending a few hours on this, and following numerous online tutorials, I still cant get this ..working..
Basically,I have the ComboBox displaying an <ALL> option, but for the report, it doesn’t actually return anything, it’s just simply there for aesthetics at the moment. How do I get it to return data? There are 3 combo box’s that need to be filled out, one being Treatment Type, another for Treatment Date (Both of which will frequently use (ALL) ), and Birth Month, which will always be a specific month.
The query for the Treatment Type ComboBox is as follows:
Select "(All Records)"
FROM Treatment
UNION Select Treatment.Treatment
From Treatment;
The query for the Treatment Date ComboBox is as follows:
Select 0, "(All Records)"
FROM Events
UNION
Select Events.DatefieldID, Events.Datefields
From Events;
<All>isn’t a special value that’s understood by Sql…if you’re checking in your other query that
where treatmentType = [Value From Combo Box]… and the value in the combo box is “<All>“.. then no rows will match that condition, and nothing will be returned.Instead, you’ll need to adjust your logic to handle the
<All>value differently…where treatmentType = [Value From Combo Box] OR [Value From Combo Box] = "<All>"