Here's the code (referencing a SqlAdapter defined on the form using .NET Server objects):
sqlAdpTimeWorked.SelectCommand.CommandText = "SELECT UniqueID FROM TimeWorked where (SignDate = '" & Format$(Now, "Short Date") & "') AND (EmployeeID = " & Request.QueryString("UniqueID") & ")"
sqlAdpTimeWorked.Fill(DsTimeWorked)
This results in the SQL statement mentioned earlier.
If this provides additional clues for why it won't work when submitted from code, please elaborate, because I'd like to know what this code might be telling you that my previous question did not. TIA...
|