have a mainform called PendingsMain and a subform called
PendingsSub. You can filter the subform by different filters and this
works fine.
i want to create a report that will print out the results of the users
filters or print everything if there is no filters submitted within
the form.
Any suggestions
This is what i have so far:
if an "opid" is not selected but another filter is like "ProdCD"
"DateIn", "Policy" it will not filter the report. I need to take in
account all of the filters that could be selected or left null just
not sure how.
PendingsSub. You can filter the subform by different filters and this
works fine.
i want to create a report that will print out the results of the users
filters or print everything if there is no filters submitted within
the form.
Any suggestions
This is what i have so far:
Code:
Dim StrWhere As String With Me.[FPastDuePendingsSub].Form If Me.FPastDuePendingsSub.Form.FilterOn = True Then StrWhere = Me.FPastDuePendingsSub.Form.Filter & _ " AND ([opid] = """ & Me.cboopid & """)" End If End With DoCmd.OpenReport "RPendDetail", acViewPreview, , StrWhere
if an "opid" is not selected but another filter is like "ProdCD"
"DateIn", "Policy" it will not filter the report. I need to take in
account all of the filters that could be selected or left null just
not sure how.
Comment