T
Ted M H
I’ve got a primary form that shows a single customer record from the customer
table. I have a sub form that shows all the shipping orders for that
customer in the shipping order header table. I use a simple query on the sub
form to select shipping order records where the customer number in the
shipping order header table equals the customer number in the primary form.
Let’s call this FormSet1.
I need to add another set of forms, one that will list a single shipping
order‘s header data from the shipping order header table and the other to
list all of the product details associated with that shipping order. The
product details are in the shipping order details table. Let’s call this
FormSet2
I want the user to double-click on the shipping order number in one of the
shipping order records listed in the sub form in FormSet1 and have Access
open FormSet2 with both the primary form (shipping order header) and sub form
(associated product details) already populated with the shipping order number
that is double-clicked on in the sub form in FormSet1.
I can get FormSet2 to work great as long as I’m willing to manually enter
the shipping order number as a parameter. I want the double-click event in
the sub form in FormSet1 to run a simple macro that opens FormSet2, but
somehow the shipping order number that the user double-clicked on is getting
lost on the way to FormSet2.
Any idea how I can get my macro to grab the shipping order number that’s in
the sub form when my user double clicks it, and then pass that shipping order
number to my FormSet2?
Many thanks.
table. I have a sub form that shows all the shipping orders for that
customer in the shipping order header table. I use a simple query on the sub
form to select shipping order records where the customer number in the
shipping order header table equals the customer number in the primary form.
Let’s call this FormSet1.
I need to add another set of forms, one that will list a single shipping
order‘s header data from the shipping order header table and the other to
list all of the product details associated with that shipping order. The
product details are in the shipping order details table. Let’s call this
FormSet2
I want the user to double-click on the shipping order number in one of the
shipping order records listed in the sub form in FormSet1 and have Access
open FormSet2 with both the primary form (shipping order header) and sub form
(associated product details) already populated with the shipping order number
that is double-clicked on in the sub form in FormSet1.
I can get FormSet2 to work great as long as I’m willing to manually enter
the shipping order number as a parameter. I want the double-click event in
the sub form in FormSet1 to run a simple macro that opens FormSet2, but
somehow the shipping order number that the user double-clicked on is getting
lost on the way to FormSet2.
Any idea how I can get my macro to grab the shipping order number that’s in
the sub form when my user double clicks it, and then pass that shipping order
number to my FormSet2?
Many thanks.