hi guys am getting an error in ASP.NET( code behind in VB)and i don't know what it means. The error comes as i execute the code below to update a table in my database
Dim v_command1 As New SqlCommand
Dim v_sqlcode1 As String
v_sqlcode1 = "Update Session SET Endtime = DATEADD(Hour,'" & DRPL_DURATION.SelectedValue & "','" & TXTBX_START.Text & "') WHERE SessionID = ('" & TXTBOX_SESSIONID.Text & "')"
v_sqlconn.Open()
this code should allow me to be able to update the end time of a meeting when i decide to change how long it lasts for. the error am getting is this:
Additional information: Argument data type varchar is invalid for argument 2 of dateadd function.
does anyone have an idea what this error message might means.
Thanks