اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

طلب طريقة اغلاق جميع النماذج والتقارير المفتوحة دفعة واحدة وفتح نموذج FXY


إذهب إلى أفضل إجابة Solved by محمد أبوعبدالله,

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

طلب طريقة اغلاق جميع النماذج والتقارير المفتوحة ,بالاضافة الى النموذج المتواجد بة دفعة واحدة وفتح نموذج FXY

تم تعديل بواسطه ازهر عبد العزيز
رابط هذا التعليق
شارك

  • أفضل إجابة

تفضل اخي الكريم

    Dim i As Integer
    
    With Application.Forms
     For i = .Count - 1 To 0 Step -1
        With .Item(i)
            If .Name <> "FXY" Then
                DoCmd.Close acForm, .Name
            End If
        End With
        Next i
     End With
     DoCmd.OpenForm "FXY"
     
    With Application.Reports
     For i = .Count - 1 To 0 Step -1
        With .Item(i)
            DoCmd.Close acReport, .Name
        End With
     Next i
     End With

تحياتي

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

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