I have an extremely wide dataset with a lot of columns. Most only have only 2-6 possible options. The user may have different options in the future for these columns.
My solutions is to use MS Access to create a search form to allow the user to find records based on input, most of these columns being combo box's.
I have successfully gotten distinct values for my combo boxs and returned values, however I only get one record returned when for example selecting "Yes" even though my data set has many that match Yes. I have tried to use a LIKE encapsulated with * and even hard corded YES but get the same results. When I Choose "No" I get no results and I expected to get the one record with "No". How can I get all the records? Also I would like my combo box to start blank and or include a blank option.
My Row Source
SELECT DISTINCT WeddingList.[Location Shots/drone shots] FROM WeddingList;
My "After Update" VBA
Private Sub cboLocationShot_AfterUpdate()
Dim locationShot As String
locationShot = "Select * from WeddingList Where ([Location Shots/drone shots] LIKE '*" & Me.cboLocationShot & "*')"
'locationShot = "SELECT * from WeddingList WHERE [Location Shots/drone shots] LIKE '*YES*'"
Me.WeddingList_subform2.Form.RecordSource = locationShot
Me.WeddingList_subform2.Form.Requery