I have one form which have two multiselect listboxes. They work, but every time when I choose id_organizacija from listbox popup enter parameter value comes up.
Im already tried to put id_organizacija in [ ] but that didnt solve problem.
Any suggestions?Thanks
Im already tried to put id_organizacija in [ ] but that didnt solve problem.
Any suggestions?Thanks
Code:
Set ctl = Me.lstEmployees
For Each varItem In ctl.ItemsSelected
strWhere = strWhere & ctl.ItemData(varItem) & ","
Next varItem
Set ctl = Me.lstOrganizacija
For Each varItem In ctl.ItemsSelected
strWhere2 = strWhere2 & ctl.ItemData(varItem) & ","
Next varItem
'trim trailing comma
strWhere = Left(strWhere, Len(strWhere) - 1)
strWhere2 = Left(strWhere2, Len(strWhere2) - 1)
'open the report, restricted to the selected items
DoCmd.OpenReport "rptUlaz", acViewPreview, , "broj_konta In(" & strWhere & ") AND id_organizacija In(" & strWhere2 & ")"