O
Ofer Cohen
Change the way you open the report so you can open it from different forms
Use the WhereCriteria of the open report command line, living the
RecordSource without a criteria
Dim MyCriteria As Text
MyCriteria = "[FieldName] = " & Forms!frmCheckAction!TxtSalesID
Docmd.OpenReport "ReportName",,,MyCriteria
From the other form, set a different criteria, or open without a criteria
Docmd.OpenReport "ReportName"
Mybe this link will provide you with a different example
http://www.databasedev.co.uk/report_from_form_record.html
Use the WhereCriteria of the open report command line, living the
RecordSource without a criteria
Dim MyCriteria As Text
MyCriteria = "[FieldName] = " & Forms!frmCheckAction!TxtSalesID
Docmd.OpenReport "ReportName",,,MyCriteria
From the other form, set a different criteria, or open without a criteria
Docmd.OpenReport "ReportName"
Mybe this link will provide you with a different example
http://www.databasedev.co.uk/report_from_form_record.html