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

تصدير اكثر من تقرير وفقا للCheck BOX المحدد في مسار محدد


إذهب إلى أفضل إجابة Solved by Foksh,

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

1 ساعه مضت, UserUser2 said:

محتاج عند تحديد شيك بوكس يصدر التقرير المحدد فقط في مسار محدد
ولو اكثر من تقرير يصدرهم دفعه واحده فى مسار محدد 

 

غير اسماء الملفات المصدرة مثلا Reports1 - Reports2 - Reports3 - Reports4 هنا

 

1.jpg

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

2 ساعات مضت, ناقل said:

غير اسماء الملفات المصدرة مثلا Reports1 - Reports2 - Reports3 - Reports4 هنا

 

1.jpg

اشكرك على ردك 
الجزء اللى حضرتك محدده خاص بمكان الحفظ وده فولدر موجود في نفس مسار قاعده البيانات 

 

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

  • أفضل إجابة

مشاركة مع أستاذنا @ناقل ، جرب هذا الكود في الزر المسؤول عن التصدير

Dim outputPath As String
outputPath = CurrentProject.Path & "\Reports\"

If CheckA.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report1", acFormatPDF, outputPath & "Report1.pdf"
End If

If CheckC.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report2", acFormatPDF, outputPath & "Report2.pdf"
End If

If CheckD.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report3", acFormatPDF, outputPath & "Report3.pdf"
End If

If CheckE.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report4", acFormatPDF, outputPath & "Report4.pdf"
End If

وهذا مرفق ، جرب الزر Try Me بعد تحديد اي تقارير تريد

Test (1) (1).accdb

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

2 ساعات مضت, Foksh said:

مشاركة مع أستاذنا @ناقل ، جرب هذا الكود في الزر المسؤول عن التصدير

Dim outputPath As String
outputPath = CurrentProject.Path & "\Reports\"

If CheckA.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report1", acFormatPDF, outputPath & "Report1.pdf"
End If

If CheckC.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report2", acFormatPDF, outputPath & "Report2.pdf"
End If

If CheckD.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report3", acFormatPDF, outputPath & "Report3.pdf"
End If

If CheckE.Value = True Then
    DoCmd.OutputTo acOutputReport, "Report4", acFormatPDF, outputPath & "Report4.pdf"
End If

وهذا مرفق ، جرب الزر Try Me بعد تحديد اي تقارير تريد

Test (1) (1).accdb 548 kB · 2 downloads

جزاك الله خيرا 

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

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