- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
Looking for some help or a point in the right direction with what i'm trying to achieve.
I basically need up update multiple checkbox values at once. The only examples I can find are adding extra columns to GridViews so rows can be deleted. I actually have a field within the table that needs updating so it's a fair bit different.
It's for a timesheet system and the page will be used for approving hours (the checkbox value needs to be set to approve the hours)
The SQL Query i'm using is:
Can anyone help me with this?
I basically need up update multiple checkbox values at once. The only examples I can find are adding extra columns to GridViews so rows can be deleted. I actually have a field within the table that needs updating so it's a fair bit different.
It's for a timesheet system and the page will be used for approving hours (the checkbox value needs to be set to approve the hours)
The SQL Query i'm using is:
Code:
SELECT ID , TimeCode , Date , Hours , Username , Comments , Approved ,
( SELECT CodeOwner FROM lward.tblCodes WHERE tblCodes.CodeID = tblHours.TimeCode AND CodeOwner = @UserName) as CodeOwner
FROM lward.tblHours WHERE Approved is NULL and tblHours.TimeCode in (SELECT distinct CodeID from lward.tblCodes WHERE tblCodes.CodeID = tblHours.TimeCode AND CodeOwner = @UserName)
Can anyone help me with this?
Last edited: