linking 2 sub forms

B

Bob Richardson

I have an arrangement almost identical to the Northwind DB "Customer Orders"
form. The Main Form holds two subforms. Subform1 is a datasheet view of
orders for the customer. Subform2 is a design view of an order. The idea is
that when the user clicks on a line in subform1, a design view of that order
should appear in subform2.

The main form correctly shows the customer info, as does subform 1. Subform2
appears, but all the data boxes are blank.

The one difference from my situation and the NW DB is that both of my
subforms are based upon the Orders file. Is this my problem? Do I need to
create a query or somehow a copy of the orders table so that this will work.
I want the user to be able to edit info on subform2, and of course that
might affect a field that is visible on subform 1.

On subform2 the Source Object is subform1; Link Child Fields = OrderID; and
Link Master Fields = [subform2].Form![OrderID]
 
Top