S
smithy
Hi ,
I have a sales order database in Accesss 2007. For each order there can be
1->many line items. I have a main form showing order details & a subform
showning the item details. I want to add a scroll button on the main form to
get the next order, but all i get is the next line item, this is okay when
there is only one but a problem if there are 99 items.
Here is the code associated with the control
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Orders"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms![Orders].SetFocus
DoCmd.GoToRecord , , acNext
Thanks for any help.
I have a sales order database in Accesss 2007. For each order there can be
1->many line items. I have a main form showing order details & a subform
showning the item details. I want to add a scroll button on the main form to
get the next order, but all i get is the next line item, this is okay when
there is only one but a problem if there are 99 items.
Here is the code associated with the control
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Orders"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms![Orders].SetFocus
DoCmd.GoToRecord , , acNext
Thanks for any help.