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

مطلوب صيغة كود لحفظ أكثر من سجل


mr.thrwat

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

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

احتاج صيغة كود لتكرار عملية حفظ فى نفس الجدول بضغطة زر واحدة رجاء التعديل على الكود التالى :

Dim strSQL1 As String
strSQL1 = ("INSERT INTO opin ( [flatno] ) VALUES('" & Me.Controls("flatno") & "')")
CurrentDb.Execute strSQL1, dbFailOnError
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

 

Dim strSQL2 As String
strSQL2 = ("INSERT INTO opin ( [flatno] ) VALUES('" & Me.Controls("flatno") & "')")
CurrentDb.Execute strSQL2, dbFailOnError
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

 

Dim strSQL3 As String
strSQL3 = ("INSERT INTO opin ( [flatno] ) VALUES('" & Me.Controls("flatno") & "')")
CurrentDb.Execute strSQL3, dbFailOnError
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

 

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

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