تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
مشكلة في تحديث البيانات
#1
لما احاول التعديل على البيانات تظهر الرسالة التالية 
الصورة في المرفقات


الملفات المرفقة صورة/صور
   
الرد }}}
تم الشكر بواسطة:
#2
هذة يعني انك تريد استخدام كائن لم تنشئة بالجملة New

هذا الكائن يحتاج أن تنشئة قبل أن تستخدمة
الرد }}}
تم الشكر بواسطة:
#3
(23-01-18, 04:56 PM)عبدالله الدوسري كتب : هذة يعني انك تريد استخدام كائن لم تنشئة بالجملة New

هذا الكائن يحتاج أن تنشئة قبل أن تستخدمة

أنا أستعمل داتا قريد فيو  فقط
وأمرر القيم من خلال مصفوفة برامترات


الملفات المرفقة صورة/صور
   
الرد }}}
تم الشكر بواسطة:
#4
إذن أحد القيم عبارة عن NULL
اعمل debugging للمشروع وشوف وين يظهر الخطأ
في أول سطر إعمل Breakpoint عشان يوقف الـdebuger عليها
وبعدين مشيه سطر سطر لين تظهر لك المشكلة
الرد }}}
تم الشكر بواسطة:
#5
(23-01-18, 11:20 PM)عبدالله الدوسري كتب : إذن أحد القيم عبارة عن NULL
اعمل debugging للمشروع وشوف وين يظهر الخطأ
في أول سطر إعمل Breakpoint عشان يوقف الـdebuger عليها
وبعدين مشيه سطر سطر لين تظهر لك المشكلة

اسمحلي
عند ادراج بيانات جديدة لا تحدث المشكلة ولو كانت بعض خلايا الداتا قريد فارغة
إلا لما أقوم بتحديث البيانات فتكون خلية من الداتا قريد فيها بيانات أقوم بحذف البيانات مثلا تحدث المشكلة
الرد }}}
تم الشكر بواسطة:
#6
ستجد تفاصيل عن الخطأ ,, 
ارفقها هنا لنرى من اين مصدر الخطاء أو اي تفاصيل اخرى عنه
   


ثم انسخ الـ stack trace وارفقة هنا
   
الرد }}}
تم الشكر بواسطة:
#7
(23-01-18, 11:46 PM)عبدالله الدوسري كتب : ستجد تفاصيل عن الخطأ ,, 
ارفقها هنا لنرى من اين مصدر الخطاء أو اي تفاصيل اخرى عنه



ثم انسخ الـ stack trace وارفقة هنا

   at Inspecteur.Form2.DataGridView1_CellEndEdit(Object sender, DataGridViewCellEventArgs e) in H:\برامجي\برنامج وثائق المفتش\Inspecteur\Inspecteur\FRM\Form2.vb:line 121
   at System.Windows.Forms.DataGridView.OnCellEndEdit(DataGridViewCellEventArgs e)
   at System.Windows.Forms.DataGridView.EndEdit(DataGridViewDataErrorContexts context, DataGridViewValidateCellInternal validateCell, Boolean fireCellLeave, Boolean fireCellEnter, Boolean fireRowLeave, Boolean fireRowEnter, Boolean fireLeave, Boolean keepFocus, Boolean resetCurrentCell, Boolean resetAnchorCell)
   at System.Windows.Forms.DataGridView.CommitEditForOperation(Int32 columnIndex, Int32 rowIndex, Boolean forCurrentCellChange)
   at System.Windows.Forms.DataGridView.ScrollIntoView(Int32 columnIndex, Int32 rowIndex, Boolean forCurrentCellChange)
   at System.Windows.Forms.DataGridView.TabToNextCell()
   at System.Windows.Forms.DataGridView.ProcessTabKey(Keys keyData)
   at System.Windows.Forms.DataGridView.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at Inspecteur.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
الرد }}}
تم الشكر بواسطة:
#8
PHP كود :
           If String.IsNullOrEmpty(DataGridView1.Rows(0).Cells(1).ValueThen
                PR
(0) = ""
 
           Else
                PR
(0) = New OleDb.OleDbParameter("@PROF"OleDb.OleDbType.VarCharWith {.Value DataGridView1.Rows(0).Cells(1).Value.ToString}
 
           End If 
لكن لماذا الــ  (Rows(0
ثابت على الرقم صفر

تأكد من الكود
الرد }}}
تم الشكر بواسطة:
#9
بارك الله فيك أخي
row ثابت على 0 لأني آخذ البيانات من الصف الأول
الكود يعمل بشكل جيد لما استعمل مفتاح المسافة في الحذف لكن لما استعمل مفتاح delete يظهر الخطأ
أقصد الكود قبل أن ادخل تعديلك
الرد }}}
تم الشكر بواسطة:


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  اختصار كود الجمع داخل شبكة البيانات محمد خيري 2 64 أمس, 03:30 PM
آخر رد: محمد خيري
  مشكلة في ربط الفيجوال بيسك 2013 مع الاكسل صالح عبدالله 7 112 19-04-24, 09:13 AM
آخر رد: صالح عبدالله
  مشكلة فى Radiobutton عند وضع صورة فيه أبو جودة 3 94 15-04-24, 04:31 AM
آخر رد: Taha Okla
  [سؤال] لدي مشكلة عند قراءة ملف نصي من خلال أداة RichBox , حيث تظهر لي علامات استفهام Mostchar 2 155 07-04-24, 02:51 PM
آخر رد: تركي الحلواني
  مشكلة في التايمر assuhimi 3 129 23-03-24, 04:51 PM
آخر رد: Taha Okla
  [سؤال] مشكلة اتصال مفتوح dell 2 175 12-03-24, 09:46 PM
آخر رد: dell
  مشكلة عند نقل البرنامج من فيجوال 2013 الى فيجوال 2017 strongriseman 5 158 12-03-24, 10:37 AM
آخر رد: strongriseman
  مشكلة فى جمع عمود فى داتا جريد فيو احمد خطاب 3 171 06-03-24, 07:49 PM
آخر رد: احمد خطاب
Photo [VB.NET] مشكلة في شكل الفورم abuyazan 5 312 27-02-24, 09:38 PM
آخر رد: aljzazy
  [VB.NET] تحديث بيانات فى كلاس من جدول سيكوال asdfar1977 6 203 26-02-24, 01:07 AM
آخر رد: asdfar1977

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم