V
Vsn
Hi All,
I do try to open a report with a command button from a form, the report should be filtered depending on the users choice on the form.
FORM
Private Sub cmdPrint_Click()
Dim stgFilter As String
'Filter not transfered ??????????
stgFilter = "([Type] = '" & Me.lstProject & "')"
DoCmd.OpenReport "rptPojectOffshore", acViewPreview, stgFilter
End Sub
When opening the report the filter seems not to work? Even the first attempt to print the filter gives no (blanc) return.
REPORT
Private Sub Report_Open(Cancel As Integer)
'On Error Resume Next
Debug.Print "Filter: "; Me.filter
End Sub
Who can I get my Filter working?
I have never realy understood the diffrence between using a filter or the WHERE clause.
Thx a lot,
Ludovic
I do try to open a report with a command button from a form, the report should be filtered depending on the users choice on the form.
FORM
Private Sub cmdPrint_Click()
Dim stgFilter As String
'Filter not transfered ??????????
stgFilter = "([Type] = '" & Me.lstProject & "')"
DoCmd.OpenReport "rptPojectOffshore", acViewPreview, stgFilter
End Sub
When opening the report the filter seems not to work? Even the first attempt to print the filter gives no (blanc) return.
REPORT
Private Sub Report_Open(Cancel As Integer)
'On Error Resume Next
Debug.Print "Filter: "; Me.filter
End Sub
Who can I get my Filter working?
I have never realy understood the diffrence between using a filter or the WHERE clause.
Thx a lot,
Ludovic