tami said:
sorry, yes I have a main "form" with 4 buttons linking to related
forms. I have designated a relationship between them but when I
navigate from the main form to the additional forms the customer id
does not follow me. Make sense??? It is a customer database. On the
main form I have the customer information, and the linking forms
contain financing information, park model information, marketing
information, and customer follow up information. really the only link
between them will be the customer id# but it needs to be constant
throughout the record.
You should have a table structure something like this:
tblCustomer
CustomerID (primary key, or PK)
CustName
CustAddress
etc.
tblFinancing
FinanceID (PK)
CustomerID (foreign key, or FK)
FinanceText
etc.
There will also be tblParkModel, tblMarketingInfo, and tblFollowUp, set up
similarly to tblFinancing. Considering just tblFinancing for now, use the
Relationships window to create a relationship between CustomerID in
tblCustomer and CustomerID in tblFinancing. Click Enforce Referential
Integrity.
Build a form (frmCustomer) based on tblCustomer, and another (fsubFinancing)
based on tblFinancing. With frmCustomer open in design view, drag the icon
for fsubFinancing onto it. Click the subform control once to select it, and
click View > Properties. The property sheet will say subform/subreport at
the top. If not, click elsewhere on the form, then click the subform again
as described. On the property sheet's Data tab, be sure that both Link
Field properties (Parent and Child) show CustomerID. If they do not, click
the Link Child Fields (or Link Parent Fields) property and click the three
dots on the right. It will probably suggest the correct fields.
Repeat for the other three linked forms. This assumes that all Financing
information, etc. is contained in a single table. If there are to be
multiple items related to Financing (a series of payments, for instance)
there should be a FinancingDetails table. But for now, the above should
establish the relationships and the linked fields, so that all you need to
do is type information into the form and subform.