J
James Frater
Hello Everyone,
Is it possible to pass two different strings to two different text boxes on
a report through OpenArgs?
Example: I'm trying to pass the string strReportHeader to the text box
txtReportHeader and the string strPagetHeader to the text box txtPageHeader
in the report rptCompliance.
At the moment I have this on a OnClick event of a button on a form. My code
is currently:
Private Sub btnCompliance_Click()
Dim strWhere As String
Dim strReportHeader As String
Dim strPageHeader As String
Call LoadWY
strWhere = "startweek=" & W & " AND " & "startyear=" & Y
strReportHeader = "Compliance for Week " & W & " " & Y & ""
strPageHeader = **the wording for this is still being worked on**
DoCmd.OpenReport "rptCompliance", acViewPreview, , strWhere, ,
OpenArgs:=??????
Reports("rptCompliance").Caption = strReportHeader
As always many thanks
JAMES F
Is it possible to pass two different strings to two different text boxes on
a report through OpenArgs?
Example: I'm trying to pass the string strReportHeader to the text box
txtReportHeader and the string strPagetHeader to the text box txtPageHeader
in the report rptCompliance.
At the moment I have this on a OnClick event of a button on a form. My code
is currently:
Private Sub btnCompliance_Click()
Dim strWhere As String
Dim strReportHeader As String
Dim strPageHeader As String
Call LoadWY
strWhere = "startweek=" & W & " AND " & "startyear=" & Y
strReportHeader = "Compliance for Week " & W & " " & Y & ""
strPageHeader = **the wording for this is still being worked on**
DoCmd.OpenReport "rptCompliance", acViewPreview, , strWhere, ,
OpenArgs:=??????
Reports("rptCompliance").Caption = strReportHeader
As always many thanks
JAMES F