Quote:
Originally posted by rnealejr
I reread your post and see that you are using sql server - have you tried that update statement in query analyzer ?
|
I used the return of the response.write on the cmd page to type in the sql statement into the query analyzer. It ran with no errors.
I mis-stated the data type of ProHour, it is numeric as well. I wraped the value (3) in single quotes and no quotes in the analyzer and it ran both ways. I took the single quotes out of the asp however.
All numeric fields are of percision 10 and scale 0 (default).
Here is how I calculating and passing value to the variables I added the Clng latter just grasping at straws.
Dim TotProd
TotProd = (rsGtVar.Fields.Item("Prod").Value)
If IsNull(TotProd) Then TotProd = 0
Dim TotRM
TotRM = (rsGtVar.Fields.Item("RM").Value)
If IsNull(TotRM) Then TotRM = 0
Dim HrlyProd
Dim CumProd
CumProd = request.form("txtProd")
HrlyProd = Clng(CumProd) - Clng(TotProd)
Dim HrlyRM
Dim CumRM
CumRM = request.form("txtRM")
HrlyRM = Clng(CumRM) - Clng(TotRM)
Dim STDRM
STDRM = 60
ProdID = Session("ProdID")
Thanks,
Lee