G
GandaSalada via AccessMonster.com
Hi,
My code change the properties o a report and I want to save the report after
that.
Here is the code:
DoCmd.OpenReport "ReportName", acViewDesign, , , acHidden
Reports!ReportName.RecordSource = "TableSource"
Reports!ReportName!lblTitle.Caption = strTitle
Reports!ReportName.Caption = strName
DoCmd.Save acReport, "ReportName"
DoCmd.OpenReport "ReportName", acViewPreview
Most of the time I get the Run-time error 29068. Sometimes I don't!
It seems that after I open and close manualy the report, the error disapear.
The report is saved even if I get the error.
I don't understand.
Any help?
My code change the properties o a report and I want to save the report after
that.
Here is the code:
DoCmd.OpenReport "ReportName", acViewDesign, , , acHidden
Reports!ReportName.RecordSource = "TableSource"
Reports!ReportName!lblTitle.Caption = strTitle
Reports!ReportName.Caption = strName
DoCmd.Save acReport, "ReportName"
DoCmd.OpenReport "ReportName", acViewPreview
Most of the time I get the Run-time error 29068. Sometimes I don't!
It seems that after I open and close manualy the report, the error disapear.
The report is saved even if I get the error.
I don't understand.
Any help?