I have code in my form to print preview a report.
I would like to move to a new record in a subform after the report is opened.
I have tried to enter this code at the end of the open report code:
I get a Run-time error '2046': The command or action 'GoToRecord' isn't available now.
The focus moves to the subform, but that stops on the last record.
I would like to move to a new record in a subform after the report is opened.
I have tried to enter this code at the end of the open report code:
Code:
Me.frmToDoListEntryLinks.SetFocus
DoCmd.GoToRecord , , acNewRec
I get a Run-time error '2046': The command or action 'GoToRecord' isn't available now.
The focus moves to the subform, but that stops on the last record.