I've used the code in various responses but it's not working for me. I keep getting all records not just the one I'm requesting.
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptCompanyHistory"
strCriteria = "[CompanyAccountNo] =" & Me.CompanyAccountNo
DoCmd.OpenReport strReportName, acViewPreview, strCriteria