I have the following sql which adds All to the combo box and works fine. What I need to do is add another All in the combo box which is a group of some of the other options.
So my values in the combo box are:
ID
All
1 Residential
2 Residential RIP
3 Commercial
So All will select all records 1, 2, 3
I want another value called All Residential which will select all records Residential(1) & Residential RIP (2).
So my final values will be
ID
All
All Residential
1 Residential
2 Residential RIP
3 Commercial
Code:
SELECT tblMortgageTypes.MortgageTypeID, tblMortgageTypes.MortgageType FROM tblMortgageTypes UNION SELECT "(All)" as MortgageTypeID, "All" As MortgageType FROM tblMortgageTypes
ORDER BY tblMortgageTypes.[MortgageTypeID];
So my values in the combo box are:
ID
All
1 Residential
2 Residential RIP
3 Commercial
So All will select all records 1, 2, 3
I want another value called All Residential which will select all records Residential(1) & Residential RIP (2).
So my final values will be
ID
All
All Residential
1 Residential
2 Residential RIP
3 Commercial