اذهب الي المحتوي
أوفيسنا

زر تعديل البيانات فى فورم


ahmed01111

الردود الموصى بها

أول خطوة قبل كتابة موضوع جديد هي استعمال محرك البحث

ومحاولة التعلم والتطبيق من جميع النتائج

وهذه إحدى نتائج البحث

https://www.officena.net/ib/search/?q=فورم بحث وتعديل&quick=1&type=forums_topic&nodes=135&search_and_or=and

كما أن تصميم ملفك مخالف لكل الموضوعات

حيث يفضل أن تكون الاضافة والتعديل والبحث في نموذج واحد

بحيث عن الضغط على العنصر في القائمة يتم نقل جميع معلوماته الي مربعات النص الخاصة بالتعديل او الاضافة

راجع الموضوعات في نتائج البحث وخصوصا شرح عمل نموذج البحث خطوة بخطوة

رابط هذا التعليق
شارك

  • 4 weeks later...

هذا  الموضوع  تم  تناوله  كثيرا    لا  اداري  اين  الاختلاف  

لقد  اطلعت  على  ملفك بشكل  سريع  تم  اصلاح   بعض  الاشياء 

جربه

Private Sub CommandButton5_Click()
Dim lr As Long
Dim b As Worksheet
Set b = Worksheets("sheet1")
lr = b.Cells(Rows.Count, 1) _
  .End(xlUp).Row
  
    b.Range("a" & lr).Value = Me.TextBox1.Value
   b.Range("b" & lr).Value = Me.TextBox2.Value
  b.Range("c" & lr).Value = Me.TextBox3.Value
   b.Range("d" & lr).Value = Me.TextBox4.Value
    b.Range("e" & lr).Value = Me.TextBox5.Value
      b.Range("f" & lr).Value = Me.TextBox6.Value
      b.Range("g" & lr).Value = Me.TextBox7.Value
      b.Range("h" & lr).Value = Me.TextBox8.Value
     b.Range("i" & lr).Value = Me.TextBox9.Value
     b.Range("g" & lr).Value = Me.TextBox10.Value
       
  TextBox2.Value = ""
  TextBox3.Value = ""
  ComboBox1.Value = ""
  TextBox5.Value = ""
  TextBox6.Value = ""
  TextBox7.Value = ""
  ComboBox2.Value = ""
  TextBox9.Value = ""
  TextBox10.Value = ""
  End Sub

 

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information