منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : الخطأ فى هذا الكود يا شباب
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
بسم الله الرحمن الرحيم
السلام عليكم شباب

PHP كود :
For As Integer 0 To DataGridView1.Rows.Count 1
            cmd
.Editdata(" UPDATE hagz2 SET mony ='" DataGridView1.Rows(I).Cells(4).Value "' datemony ='" DataGridView1.Rows(I).Cells(5).Value "' accept ='" DataGridView1.Rows(I).Cells(6).Value "' dateaccept ='" DataGridView1.Rows(I).Cells(7).Value "' WHERE outo ='" DataGridView1.Rows(I).Cells(0).Value "'")
        
Next 
ربما اخي الكريم نسيت الفاصلة بين كل حقل وآخر

PHP كود :
For As Integer 0 To DataGridView1.Rows.Count 1
            cmd
.Editdata(" UPDATE hagz2 SET mony ='" DataGridView1.Rows(I).Cells(4).Value "', datemony ='" DataGridView1.Rows(I).Cells(5).Value "', accept ='" DataGridView1.Rows(I).Cells(6).Value "', dateaccept ='" DataGridView1.Rows(I).Cells(7).Value "' WHERE outo ='" DataGridView1.Rows(I).Cells(0).Value "'")
 
       Next