D
DaveF
I have a "customer" form with a command button that when clicked opens up an
"order" form that displays the customers orders.
If the customer has an order, the "orders" form opens to display that
customer's orders. This is accomplished using the stLinkCriteria parameter
of the DoCmd.OpenForm command.
However, if the customer does not have any orders, the "order" form opens
with a blank record. But I want to automatically populate this form with
the customer's name.
If a customer does not have an existing order, when the create order button
is clicked on the "customer" form, I want to pass the customer's ID to the
"order" form so that when it opens to a blank record, the customer name can
be displayed in a dropdown box.
IOW, for an initial order, I want to prepopulate the "order" form with the
customer's ID.
In order to do this I need to pass the ID from the parent form to the child
form and use it to select a value in a drop down box.
Can anyone give me an idea how to do this?
"order" form that displays the customers orders.
If the customer has an order, the "orders" form opens to display that
customer's orders. This is accomplished using the stLinkCriteria parameter
of the DoCmd.OpenForm command.
However, if the customer does not have any orders, the "order" form opens
with a blank record. But I want to automatically populate this form with
the customer's name.
If a customer does not have an existing order, when the create order button
is clicked on the "customer" form, I want to pass the customer's ID to the
"order" form so that when it opens to a blank record, the customer name can
be displayed in a dropdown box.
IOW, for an initial order, I want to prepopulate the "order" form with the
customer's ID.
In order to do this I need to pass the ID from the parent form to the child
form and use it to select a value in a drop down box.
Can anyone give me an idea how to do this?