Hi all,
I have a table that contains a list of different types of papers/articles. There is a column called "Category" that summarizes what that paper is about (i.e Safety, Review, Efficacy, Guideline,..., etc)
However, some rows/papers have more than one category type, separated by a comma or semi-colon, listed in the cell:
i.e
Safety
Safety, Efficacy
Review
Review, Efficacy, ..., etc
My goal is to have a combo box that only displays a dropdown of a single type of category (left combo drop down in image) without having the excessive cells that contain more than one term (right combo drop down in image) that retrieves the respective papers/results. Additionally, I want that one category term to be able to retrieve all cells that contain that category using a LIKE wildcard somehow (i.e if I click on the dropdown combo box and select "Safety" it should pull all papers that contain the word "Safety" in its category (i.e Safety; Safety, Efficacy; Safety, ..., etc), instead of ONLY retrieving papers that have "Safety" as its category.
The row source for the combo box attached on the left side is selected from a table that has column ID's labelled to its respective category term that I want.
The row source for the combo box attached on the right side is selected from the table that has a list of all the papers/articles.
Here is the code for my Category combo box:
Attachment 34859Private Sub cmboCategory_AfterUpdate()
Dim myCat As String
myCat = "SELECT * FROM [Source1] WHERE ([Category] LIKE '" & Me.cmboCategory & "')" _
& "ORDER BY [Source1].[Year] DESC; "
Me.subPublications2.Form.RecordSource = myCat
Me.subPublications2.Form.Requery
applyFilt
End Sub