S
Shawn
I have a set of reports that use the graphically created dataset. In the
SelectCommand, I need to use "IN" in the where (SELECT FullName,
CheckInTime, CheckOutTime, Minutes FROM dbo.CheckIn Where Login IN (@People)
AND CheckInTime > @CheckIn AND CheckOutTime < @CheckOut).
On the form, I have a listbox that should allow the user to select several
names and those names should be passed to the @People parameter. I can't
find a way to get that to work.
I can get a single name to work
(Me.CheckInTableAdapter.Fill(Me.dsClockIn.CheckIn,
lbPeople.SelectedValue.ToString, dtpStart.Value, dtpEnd.Value)).
SelectCommand, I need to use "IN" in the where (SELECT FullName,
CheckInTime, CheckOutTime, Minutes FROM dbo.CheckIn Where Login IN (@People)
AND CheckInTime > @CheckIn AND CheckOutTime < @CheckOut).
On the form, I have a listbox that should allow the user to select several
names and those names should be passed to the @People parameter. I can't
find a way to get that to work.
I can get a single name to work
(Me.CheckInTableAdapter.Fill(Me.dsClockIn.CheckIn,
lbPeople.SelectedValue.ToString, dtpStart.Value, dtpEnd.Value)).