Alen
دوشنبه 23 شهریور 1388, 12:34 عصر
سلام دوستان
من با استفاده از access 2007 و VB.NET 2008 کدی برای حذف رکورد های پایگاه داده بصورت زیر نوشته ام
oledbconnection.Open()
oledbcommand.CommandText = "delete from Mojoudi where MojoudiUnit='" + TextBox1.Text.Trim() + "' and MojoudiYear='" + TextBox2.Text.Trim() + "' and MojoudiMounth='" + TextBox3.Text.Trim() + "';"
oledbcommand.ExecuteNonQuery()
oledbconnection.Close()
مشکل اینه که این query از داخل خود access درست عمل میکنه اما اینجا هیچ رکوردی رو حذف نمی کنه
اگه ممکنه منو راهنمایی بفرمایید
من با استفاده از access 2007 و VB.NET 2008 کدی برای حذف رکورد های پایگاه داده بصورت زیر نوشته ام
oledbconnection.Open()
oledbcommand.CommandText = "delete from Mojoudi where MojoudiUnit='" + TextBox1.Text.Trim() + "' and MojoudiYear='" + TextBox2.Text.Trim() + "' and MojoudiMounth='" + TextBox3.Text.Trim() + "';"
oledbcommand.ExecuteNonQuery()
oledbconnection.Close()
مشکل اینه که این query از داخل خود access درست عمل میکنه اما اینجا هیچ رکوردی رو حذف نمی کنه
اگه ممکنه منو راهنمایی بفرمایید