L
Louverril
I have an Item form and I want to add a button that will open my Order form
and show all orders that have an order line for that item.
The order form shows the order header with the order lines as a SUBFORM. It
gets opened from loads of other buttons on other forms - for example to show
all orders for a customer. To do this I use "DoCmd.OpenForm stDocName, , ,
stLinkCriteria". This has always meant setting a simple string eg.
stLinkCriteria = "[Invoice.Customer_ID]=" & Me![Customer_ID].
This time though I need to be able to read the order line records to match
on the item as this only appears against the order line - can't use the
header record. So would need something different.
How can I do this?
Thanks Lou
and show all orders that have an order line for that item.
The order form shows the order header with the order lines as a SUBFORM. It
gets opened from loads of other buttons on other forms - for example to show
all orders for a customer. To do this I use "DoCmd.OpenForm stDocName, , ,
stLinkCriteria". This has always meant setting a simple string eg.
stLinkCriteria = "[Invoice.Customer_ID]=" & Me![Customer_ID].
This time though I need to be able to read the order line records to match
on the item as this only appears against the order line - can't use the
header record. So would need something different.
How can I do this?
Thanks Lou