I've got a customers form with an orders subform. The
subform is a continuous form, with a button next to
each record that should open a report based on the order next to it.
Now it works fine with the first customer, but when i move
records on the main form, the report comes up blank.
The subform updates itself fine, and i've gone into debug, and the report seems to be getting the right "where criteria"
docmd.openreport "orders", ,"orderID=" & me.orderid
or
docmd.openreport "orders", ,"orderID=" & forms![Customers]![Orders]![orderID]
subform is a continuous form, with a button next to
each record that should open a report based on the order next to it.
Now it works fine with the first customer, but when i move
records on the main form, the report comes up blank.
The subform updates itself fine, and i've gone into debug, and the report seems to be getting the right "where criteria"
docmd.openreport "orders", ,"orderID=" & me.orderid
or
docmd.openreport "orders", ,"orderID=" & forms![Customers]![Orders]![orderID]