Hi,
I have a form which acts as a data-entry form for a report, which I'm able to send 1 filter successfully (either strWhichCaseType or strWhichCounsel) to the report. However, I don't know how to send more than one. Here's a copy of the section within the code of the form...
Code from the Event procedure...
Dim strWhichCaseType As String
Dim strWhichCounsel As String
strWhichCaseType =
"CaseType = Forms![CHOOSE CASE TYPE]!SelectCaseType"
strWhichCounsel =
"Counsel_Name = Forms![CHOOSE CASE TYPE]!SelectCounsel"
(NOTE: THE FOLLOWING LINE DOESN'T WORK, IT'S WHAT I'D LIKE TO WORK)
DoCmd.OpenReport "OUTSIDE COUNSEL with MATTERS and FEES", PrintMode, , strWhichCaseType And strWhichCounsel
------------------------------------------------------------
In the Filter field of the Data tab of the Report properties (OUTSIDE COUNSEL with MATTERS and FEES) is the following....
(CaseType = Forms![CHOOSE CASE TYPE]!SelectCaseType AND Counsel_Name = Forms![CHOOSE CASE TYPE]!SelectCounsel)
thanks.
Peter
I have a form which acts as a data-entry form for a report, which I'm able to send 1 filter successfully (either strWhichCaseType or strWhichCounsel) to the report. However, I don't know how to send more than one. Here's a copy of the section within the code of the form...
Code from the Event procedure...
Dim strWhichCaseType As String
Dim strWhichCounsel As String
strWhichCaseType =
"CaseType = Forms![CHOOSE CASE TYPE]!SelectCaseType"
strWhichCounsel =
"Counsel_Name = Forms![CHOOSE CASE TYPE]!SelectCounsel"
(NOTE: THE FOLLOWING LINE DOESN'T WORK, IT'S WHAT I'D LIKE TO WORK)
DoCmd.OpenReport "OUTSIDE COUNSEL with MATTERS and FEES", PrintMode, , strWhichCaseType And strWhichCounsel
------------------------------------------------------------
In the Filter field of the Data tab of the Report properties (OUTSIDE COUNSEL with MATTERS and FEES) is the following....
(CaseType = Forms![CHOOSE CASE TYPE]!SelectCaseType AND Counsel_Name = Forms![CHOOSE CASE TYPE]!SelectCounsel)
thanks.
Peter