|
-
Nov 11th, 2008, 02:31 AM
#1
Thread Starter
Lively Member
Saving Checked Items in CheckedListBox
Hi!
How can i use multiple items in my stored procedure?
For example I checked 5 items in my CheckedListBox and iwant to use the ID's of the checked items to filter my record.
This is my code:
Dim strFilterGroup as String
Dim o As Object
For Each o In frm.chkListBoxEmployee.CheckedItems
strFilterGroup = "EmployeeID = '" & o.GetKey & "'"
Next
For Each drow In dtSrc.Select(strFilterGroup)
Dim drowNew As dsDataForExport.tblAttendanceRow
drowNew = dsToDownload.tblAttendance.NewRow()
drowNew.EmployeeID = drow("EmployeeID")
drowNew.StartOfPeriod = drow("StartOfPeriod")
drowNew.EndOfPeriod = drow("EndOfPeriod")
drowNew.TimeKeeperID = drow("TimeKeeperID")
dsToDownload.tblAttendance.Rows.Add(drowNew)
Next
in my dtSrc.Select i want to pass multiple id's there. How can i possibly do that?
thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|