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

مساعدة في فلترة تقرير


إذهب إلى الإجابة الإجابة بواسطة محمد أبوعبدالله,

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

قام بنشر

اساتذتي الافاضل هل ممكن مساعدتي فيما يلي :

لقد تم فلترة التقرير من خلال نموذج كشف الاجهزة على اساس الصنف

المطلوب :

كيف يمكن ان اقوم بفلترة التقرير على اساس الصنف والموديل معا واذا اخترت الصنف وبقي الموديل فارغا تبقى الفلترة كما هي 

ولكم جزيل الشكر

test.accdb

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

السلام عليكم

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

لعرض التقرير

Dim strWhereCondition As String
    If Not IsNull(Me.t1) Then
        strWhereCondition = strWhereCondition & " AND sub='" & Me.t1.Value & "'"
    End If
    If Not IsNull(Me.t2) Then
        strWhereCondition = strWhereCondition & " AND [ÇáãæÏíá]='" & Me.t2.Value & "'"
    End If
    If Len(strWhereCondition) > 0 Then
        strWhereCondition = Mid(strWhereCondition, 6)
    End If
        DoCmd.OpenReport "mach", acViewPreview, WhereCondition:=strWhereCondition
        DoCmd.Close acForm, Me.Name

ولطباعة التقرير

Dim strWhereCondition As String
    If Not IsNull(Me.t1) Then
        strWhereCondition = strWhereCondition & " AND sub='" & Me.t1.Value & "'"
    End If
    If Not IsNull(Me.t2) Then
        strWhereCondition = strWhereCondition & " AND [ÇáãæÏíá]='" & Me.t2.Value & "'"
    End If
    If Len(strWhereCondition) > 0 Then
        strWhereCondition = Mid(strWhereCondition, 6)
    End If
        DoCmd.OpenReport "mach", WhereCondition:=strWhereCondition
        DoCmd.Close acForm, Me.Name

UP-test.rar

تحياتي

  • Like 2

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