I have an unbound combobox (cboFilterMatri cYT) to filter records on a form. I've added the "All" selection to the combobox's rowsource using UNION. In the AfterUpdate event of the combobox I have the following:
What I can't figure out is how to get this to process the All selection. Any suggestions?
Code:
Me.RecordSource = "SELECT Disc.* FROM Disc INNER JOIN MatricYT ON Disc.MatricId=MatricYT.MatricId WHERE Disc.MatricId = " & Me.cboFilterMatricYT & " ORDER BY MatricYT.MatricYear DESC , MatricYT.MatricTerm, Disc.SortOrder;"
Me.Requery
Comment