I have used this example http://www.mrexcel.com/board2/viewtopic.php?t=94118&highlight=combo to select data using 3 combo boxes. But I need it to only show data that has a checkbox ticked. I have tried adding in another variable to the sql statement but it gives an error of too complicated?
This is my orignal sql statement from the first combobox
This is my modded version, I am trying to make it only show distinct values where available (checkbox) is ticked or yes.
jjsteele
This is my orignal sql statement from the first combobox
Code:
SELECT DISTINCT [tblAppointmentSlots].[TestLocation] FROM tblAppointmentSlots WHERE ((([tblAppointmentSlots].[Available])='Yes')) And ((([tblAppointmentSlots].[Test])=[txtTest]));
This is my modded version, I am trying to make it only show distinct values where available (checkbox) is ticked or yes.
Code:
SELECT DISTINCT [tblAppointmentSlots].[TestLocation] FROM tblAppointmentSlots WHERE ((([tblAppointmentSlots].[Test])=[txtTest]));
jjsteele