Hello world
I have a form called FrmCustomer (Which contains information about the customer) with a subform called FrmOrder(with information about the order).
What I want is a BtnReport_Click code that sends the current order from the form to the report I've made.
I have previously used this code in a form without a subform, but it obviously doesn't work when there is two forms involved.
So, how do I get my report to show information from both the FrmCustomer and FrmOrder?
Any help here will be greatly appreciated!
I have a form called FrmCustomer (Which contains information about the customer) with a subform called FrmOrder(with information about the order).
What I want is a BtnReport_Click code that sends the current order from the form to the report I've made.
I have previously used this code in a form without a subform, but it obviously doesn't work when there is two forms involved.
Code:
DoCmd.OpenReport "RptInfoCustomer", acViewPreview, , "[CusID]=Forms![FrmInfoCustomer]![CusID]"
So, how do I get my report to show information from both the FrmCustomer and FrmOrder?
Any help here will be greatly appreciated!