You can take some query or value from the form, and then package the report using the value. For example, create a query that has all customers plus all their outstanding orders, let's say. Then take their customer number from the form, and run the report WHERE [CustomerNo] = Me.CustomerNo. You can either pass the parameter to the report on the DoCmd.OpenReport where clause, or you can create a query that has this in the Criteria line for the field you are passing (CustomerNo in this case):
[Forms]![frmMyCustomerForm].[txtMyCustomerNoField]
Did any of that help?
mmcdonal
|