I have a form with a print preview command button on it that takes me to a report. When I select a record and click on the button to see the report, the report shows other records instead of the one I selected. Obviously, I don't know how to link the records of the form to the report. Any and all help will be appreciated.
The code that the Wizard created is below.
Private Sub ExternalReport_Click()
On Error GoTo Err_ExternalReport_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ExternalTraining"
DoCmd.OpenReport stDocName, acPreview