Also... Tried to use Link Master Fields and Link Child Fields.
A97 err'd saying "Can't build a link between unbound forms"
Not quite sure how to bind 2 forms. Hmmm???
You don't exactly "bind 2 forms".
To form a link between two forms at least one of the forms must have a
recordsource. It must be "bound to" a source a of data. Both forms can be
bound to data, but only one must.
The link comes from having some value on one form (such as a customer key,
an order key, a class key) used to retrieve records to be displayed in the
other form. If "the other form" is not bound to a recordsource, there ARE
no records to retrieve and so the definition of a link between them becomes
meaningless.
The typical arrangement is to have a main form that is either bound to some
data (customer table, order table, etc) or is unbound but presents a listbox
or combobox that you use to select some record for which you want to view
data out of another table.
MLH - 15 Jun 2006 19:56 GMT
Understood perfectly. I was
running into probs because
my main form was not bound.
I have used a work-around.
Thx.
> Also... Tried to use Link Master Fields and Link Child Fields.
> A97 err'd saying "Can't build a link between unbound forms"
> Not quite sure how to bind 2 forms. Hmmm???
Why not Use Filter/FilterOn?
You are on a record on MainForm. There's a field you can link to called ID.
Forms!MainForm!Subform.Form.Filter = "ID = " & Me.ID
Forms!MainForm!Subform.Form.FilterOn = True
MLH - 15 Jun 2006 19:56 GMT
Understood perfectly. I was
running into probs because
my main form was not bound.
I have used a work-around.
Thx.