اشکال در اتصال به اکسس(Access)
درود و صد بدرود بر مردمان ایران زمین
این کد کانکشن برای اتصال به دیتابیس اکسس و با استفاده از سیستم OleDb اینزرت نمی کنه اما از همین کد سلکت می کنه
conString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\MDB.mdb"
OleDbConnection myConnecation = new OleDbConnection(conString);
myCommand.Connection = oleDbConnection1;
oleDbConnection1.Open();
myCommand.CommandText = "INSERT INTO Table (ID, [first name], [secound name]) VALUES ( "+ this.Id.Text +" ," + this.first_name.Text + "," + this.last_name.Text + ")";
myCommand.ExecuteNonQuery();
oleDbConnection1.Close();
لطفاً اشکالش بگین یا راه بهتری هست کدش برام بزارید.
:گریه::گریه::گریه:
پایدار باشید