请看看我的程序,指点一下
我刚学的ASP.NET,练习写留言本程序
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OleDbConnection1.Open()
OleDbCommand1.CommandText = "insert into guestbook (username,post_time,biaoti,content) values ('" & TextBox1.Text & "','" & DateTime.Now & "','" & TextBox2.Text & "','" & TextBox3.Text & "')"
OleDbCommand1.ExecuteNonQuery()
OleDbConnection1.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
end sub
运行时出现以下错误信息:
The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\lyb\bin\lyb.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
我找不出出错的原因,……………