数据导入Access数据库报错:必须使用可更新的查询

private: System::Void timer3_Tick(System::Object^ sender, System::EventArgs^ e)
{
while (tbxHumi1->Text != "" || tbxTemp1->Text != "")
{
String^ text1 = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\Office2019\MyProject\sensor.accdb;";
String^ text2 = "insert into Sensor(Temperature1,Humidity1,Temperature2,Humidity2,Temperature3,Humidity3,Temperature4,Humidity4)Values('";
text2 += tbxTemp1+ "','";
text2 += tbxHumi1+ "','";
text2 += tbxTemp2 + "','";
text2 += tbxHumi2 + "','";
text2 += tbxTemp3 + "','";
text2 += tbxHumi3 + "','";
text2 += tbxTemp4 + "','";
text2 += tbxHumi4 + "')";
OleDbConnection^ conn = gcnew OleDbConnection(text1);
conn->Open();
OleDbCommand^ da = gcnew OleDbCommand();
da->CommandText = text2;
da->Connection = conn;
da->ExecuteNonQuery();//出错处
ClearText();
conn->Close();
}
}

看看是不是access文件被锁定,或者程序没有写入的权限。