hi everyone,
i'm trying to add an "All" criteria to my combo box that i use as a parameter for a query. i've added the "All" selection using a union query. now i can't figure out what SQL to use in my parameter query. i need some kind of conditional statement that basically says if the value of the combo box is "All" then SELECT * otherwise use the selected item of the combo box. here's my recordsource for my combo box:
SELECT DISTINCT tblUser.ID, tblUser.Name FROM tblUser UNION SELECT " ",' All' FROM tblUser;
could someone please help me with this.
many thanks
i'm trying to add an "All" criteria to my combo box that i use as a parameter for a query. i've added the "All" selection using a union query. now i can't figure out what SQL to use in my parameter query. i need some kind of conditional statement that basically says if the value of the combo box is "All" then SELECT * otherwise use the selected item of the combo box. here's my recordsource for my combo box:
SELECT DISTINCT tblUser.ID, tblUser.Name FROM tblUser UNION SELECT " ",' All' FROM tblUser;
could someone please help me with this.
many thanks