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

اريد إنشاء زر يطبع تقرير البحث وزر اخر تصدير الي الاكسل


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

منذ ساعه, سالم محمد said:

إنشاء زر يطبع تقرير البحث وزر اخر تصدير الي الاكسل f4.rar

اخي لا يوجد تقرير في المرفق

على كل حال اليك الاكواد التي تحتاجها

1- كود طباعة البحث ضعه في زر امر

Dim RName, FldCriteria As String
RName = "اسم التقرير"
FldCriteria = "[اسم الترقيم في الجدول]=" & Me![اسم الترقيو في الجدول]
DoCmd.OpenReport RName, acViewNormal, , FldCriteria

2- كود تصدير التقرير الى اكسل

On Error Resume Next
DoCmd.SelectObject acReport, namerpts
DoCmd.OutputTo acOutputReport, namerpts, "MicrosoftExcelBiff8(*.xls)", "", True, ".xls", , acExportQualityPrint

 

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

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