i try to add record to my user table but it appears errors on cnn.open says that
"The Microsoft Jet database engine cannot open the file 'C:\Users\avengers\Documents\QPG\QPG\bin\Debug'. It is already opened exclusively by another user, or you need permission to view its data."
this is my code.pless help me
Dim cmd As New OleDb.OleDbCommand
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
cmd.Connection = cnn
cmd.CommandText = "INSERT INTO userTable(Username, Password) " & _
" VALUES(" & Me.username1.Text & ",'" & Me.password1.Text & "')"
cmd.ExecuteNonQuery()
cnn.Close()
"The Microsoft Jet database engine cannot open the file 'C:\Users\avengers\Documents\QPG\QPG\bin\Debug'. It is already opened exclusively by another user, or you need permission to view its data."
this is my code.pless help me
Dim cmd As New OleDb.OleDbCommand
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
cmd.Connection = cnn
cmd.CommandText = "INSERT INTO userTable(Username, Password) " & _
" VALUES(" & Me.username1.Text & ",'" & Me.password1.Text & "')"
cmd.ExecuteNonQuery()
cnn.Close()