How to create a Report from the result of a Filter?

Ashraf

New member
Local time
Today, 09:47
Joined
May 5, 2010
Messages
3
Hi,

How to create a Report from the result of a Filter?
 
Hi,

How to create a Report from the result of a Filter?

Welcome to AWF!

With the limited details, I will assume that you mean use the filter from a form.

Set the OnClick property of the command button to the following event procedure:

Code:
Private Sub cmdOpenReport_Click()
    If Me.Filter = "" Then
        MsgBox "Apply a filter to the form first."
    Else
        DoCmd.OpenReport "rptCustomers", acViewPreview, , Me.Filter
    End If
End Sub

Hope this helps ...
 
Great!
Thank You very much;)
 

Users who are viewing this thread

Back
Top Bottom