AznCutie
Member
Hi, Im trying to add a user to a database, but my codes defunct...
When I try to run it, it errors out at "Cmd.ExequteNonQuery" and the exception details are...
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
...Yay... I love defunct code...
Code:
Sub doSignup(Source as Object, E as EventArgs)
Dim strFname as string=frmfname.text
Dim strLname as string =frmlname.text
Dim strEmail as string =frmemail.text
Dim struid as string =frmuid.text
Dim strpwd as string =frmpwd.text
Dim MySQL as string = "Insert into logintutorial (fname, lname, email, uid, pwd) values (" & _
strfname & ", " & strlname & ", " & _
strEmail & ", " & struid & ", " & strpwd & ")"
Dim myConn As OleDbConnection = _
New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
server.mappath("loginTutorial.mdb") & ";")
Dim Cmd as New OleDbCommand(MySQL, MyConn)
MyConn.Open()
Cmd.ExecuteNonQuery
label1.text = "Its Done!"
End Sub
When I try to run it, it errors out at "Cmd.ExequteNonQuery" and the exception details are...
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
...Yay... I love defunct code...
Last edited by a moderator: