TRACEYMARYLAND
Programmer
hi i have a form qty on hand
<%if request("QtyOnHand") = "" then
QtyOnHand = 0
else%>
<% QtyOnHand = CDBL(QtyOnHand)%>
<%response.write "on hand" & QtyOnHand
end if
When i put in value of 5...the value im getting is 0
i thought CDBL would give me 5
so if they put in 17.28 it going to pass this to sql
strSQL = "sp_Web_Window_PartId '" & request("PartId") & "', '" & request("Description") & "', '" & request("StockUm") & "', '" & request("Fab") & "', '" & request("Pur") & "', '" & QtyOnHand & "', '" & request("MfgName") & "', '" & request("MfgPartId") & "', '" & request("ProductCode") & "'"
sql
stored procedure
@QTY_ON_HAND decimal(14,4),
<%if request("QtyOnHand") = "" then
QtyOnHand = 0
else%>
<% QtyOnHand = CDBL(QtyOnHand)%>
<%response.write "on hand" & QtyOnHand
end if
When i put in value of 5...the value im getting is 0
i thought CDBL would give me 5
so if they put in 17.28 it going to pass this to sql
strSQL = "sp_Web_Window_PartId '" & request("PartId") & "', '" & request("Description") & "', '" & request("StockUm") & "', '" & request("Fab") & "', '" & request("Pur") & "', '" & QtyOnHand & "', '" & request("MfgName") & "', '" & request("MfgPartId") & "', '" & request("ProductCode") & "'"
sql
stored procedure
@QTY_ON_HAND decimal(14,4),