D
Dennis
Access 2003
The following code works fine to access the report Caption and Record Source.
Dim myReportName As String
myReportName = "October 2003"
DoCmd.CopyObject "", myReportName, acReport, "myUpdateReport"
DoCmd.OpenReport myReportName, acViewDesign
With Reports(myReportName)
.Caption = "Solon Utilities" & myReportName
.RecordSource = "qry" & myReportName
End With
DoCmd.Save , myReportName
DoCmd.Close acReport, myReportName
What Object, Method, Property is appropriate to change the contents of Label24 in MyReportName
from "XYZ" to "ABC"?
TIA Dennis
The following code works fine to access the report Caption and Record Source.
Dim myReportName As String
myReportName = "October 2003"
DoCmd.CopyObject "", myReportName, acReport, "myUpdateReport"
DoCmd.OpenReport myReportName, acViewDesign
With Reports(myReportName)
.Caption = "Solon Utilities" & myReportName
.RecordSource = "qry" & myReportName
End With
DoCmd.Save , myReportName
DoCmd.Close acReport, myReportName
What Object, Method, Property is appropriate to change the contents of Label24 in MyReportName
from "XYZ" to "ABC"?
TIA Dennis