I have a subform like so:
Main Form = frmSitesLog
Subform = frmSitesLogSavings
The subform has multiple calulation fields within it that will be transferred to a report.
The name of my report is rtpSitesLogSavings
The form is controlled by control name SavingsID and so is the report.
I am trying to select a cmd button from the frmSitesLogSavings to open a report with the corresponding record displayed. I am trying to get the following code to work correctly.
Any ideas?
Main Form = frmSitesLog
Subform = frmSitesLogSavings
The subform has multiple calulation fields within it that will be transferred to a report.
The name of my report is rtpSitesLogSavings
The form is controlled by control name SavingsID and so is the report.
I am trying to select a cmd button from the frmSitesLogSavings to open a report with the corresponding record displayed. I am trying to get the following code to work correctly.
Code:
DoCmd.OpenReport stDocName, acPreview, , [savingsid] = " & savingsid"
Any ideas?