Continuous search form help - displaying text box values

rasher

Registered User.
Local time
Today, 16:33
Joined
Jun 18, 2009
Messages
11
I have a search form that is continuous, and uses tbxEmployeeID to identify the records that are displayed with the criteria selected. I want to use:

Private Sub btnPrint_Click()
'this object prints the results to a report

Dim strWhere As String
Dim lngLen As Long
strWhere = "" 'main filter

strWhere = strWhere & "[Employee_ID] LIKE ""*" & Me.tbxEmployeeID & "*"""

'insert print function
DoCmd.Minimize
DoCmd.OpenReport "Search Results", acViewPreview, , strWhere

End Sub

to display multiple records that are found in the data set, because the report I have cannot be linked with the other criteria (CertificationID, SkillID, etc). Searching for a certification or a skill brings up the employee anyway, so all I need is to be able to display the employee.

The function works fine, but the problem is that it only displays whichever employee is in the first text box. I need it to display all of the ID's found in the text boxes, and I'm not sure how.

Any ideas?:confused:
 

Users who are viewing this thread

Back
Top Bottom