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

إلحاق قيم من قائمة متعددة القيم إلى جدول


1DAOUD

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

حسب فهمي لسؤالك .. المفروض ان يكون النموذج Proces   مستمر ويحتوي على حقل yes/no  لاختيار السجلات التي تريد الحاقها الى الجدول local  

ولا ايه الموضوع؟

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

8 دقائق مضت, Eng.Qassim said:

حسب فهمي لسؤالك .. المفروض ان يكون النموذج Proces   مستمر ويحتوي على حقل yes/no  لاختيار السجلات التي تريد الحاقها الى الجدول local  

 

ولا ايه الموضوع؟

 

اريد نقل القيمة التيي في الخانة "نموذج proces" إلى جدول local

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

4 ساعات مضت, 1DAOUD said:

السجل الظاهر في النموذج فقط 

طيب <<<<<<<<>>>>>>>>

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

Dim msgstyle
Dim Rs As DAO.Recordset
Dim Rs2 As DAO.Recordset
Dim rstChild As Recordset
Dim rstChild2 As Recordset
Dim rstChild3 As Recordset
Dim rstChild4 As Recordset
        
   Set Rs2 = CurrentDb.OpenRecordset("select * from proces where [id] Like '" & [id] & "*'")
   Set Rs = CurrentDb.OpenRecordset("local")
   
Do While Not Rs2.EOF
   Rs.AddNew
   Set rstChild = Rs!vend.Value
   Set rstChild2 = Rs2!vend.Value
   Set rstChild3 = Rs!sisi.Value
   Set rstChild4 = Rs2!sisi.Value
   
   Rs!id_f = Rs2!id
   
Do While Not rstChild2.EOF
        rstChild.AddNew
        rstChild.Fields(0) = rstChild2.Fields(0)
        rstChild.Update
        rstChild2.MoveNext
Loop
   Do While Not rstChild4.EOF
        rstChild3.AddNew
        rstChild3.Fields(0) = rstChild4.Fields(0)
        rstChild3.Update
        rstChild4.MoveNext
   Loop
Rs.Update
   
Rs2.MoveNext
Loop
Set Rs = Nothing
MsgBox Space(20) & "تمت العملية بنجاح.." & Space(20), msgstyle, "للمعلومية"

 

  • Like 3
  • Thanks 2
رابط هذا التعليق
شارك

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