Here is a code that I have used in the past
Code:
Private Sub Command28_Click()
On Error GoTo Err_Command28_Click
Dim stDocName As String
stDocName = "Submission"
'DoCmd.OpenReport stDocName, acNormal, , "[ID] = Forms!frmClients!ID"
DoCmd.OpenReport stDocName, acViewPreview, , "[ID]=Forms!frmClients!ID"
Exit_Command28_Click:
Exit Sub
Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click
End Sub
You will have to change your form names. The key here is the field name [ID] is the record number in the table and form that you are looking at. This was put onto a command button. The report used a query for a record source. The two DoCmd lines are in case you wish to view the report in a preview format or in normal format. The apostrophe in front turns the code to information text and does not execute it. Take your pick.
HTH
Alan