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

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

قام بنشر
  في 12‏/5‏/2024 at 11:11, UserUser2 said:

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

 

Expand  

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

 

1.jpg

قام بنشر
  في 12‏/5‏/2024 at 12:51, ناقل said:

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

 

1.jpg

Expand  

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

 

  • تمت الإجابة
قام بنشر

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

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).accdbFetching info...

قام بنشر
  في 12‏/5‏/2024 at 15:46, 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

Expand  

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

  • 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