Hi guys,
I have a list of "skillsets" that populate into a textbox based on different check boxes. For example, if person A is a farmer and an electrician, when I put a check mark in those boxes, the following is placed in the skillset textbox; farmer, electrician.
I'm trying to filter out people based on specific skill sets, so I created a skillset search form with a list box (SkillSetList) and a "Run" button. I want to be able to select 2-3 skillsets from the listbox and then click the run button and have the people that meet the criteria show up in a report (Candidate Skillsets).
I've got the listbox to display all the skillsets and I can select multiple skillsets, but when I click the run, I get stuck. I get the message "You must select at least 1 skillset." Which is only supposed to happen if I don't have anything selected.
Any help would be much appreciated!
"Private Sub cmdRunReport_Click() 'User must select at least 1 value from the list box
If IsNull(SkillSetList) = True Then
MsgBox "You must select at least 1 skillset."
'Open report called Candidate Skillsets where the Skillsets field
' contains the values in the SillSetList list box
Else
DoCmd.OpenReport "Candidate Skillsets", acViewReport, , "Skillsets like '*" & SkillSetList & "*'"
End If
End Sub