Re: Urgent - I'm reposting this here. Please help!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Fri, 15 Feb 2008 09:46:02 -0800, WestWingFan
<WestWingFan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Ok, I have a crazy question, but surely someone has an answer. I have five
tables I would like to enter information into what looks like one form (I
know it will have a series of subforms). I can't seem to get it to work. My
tables (simplified) are: Title, Section, Item, Statement, Clarification. All
the relationships are one to many down the chain - except for the Item table
whose PK is a combo of SectionID and StatementID. It would seem to me that I
should set tblItem as the parent recordsource, but then I would need a
subform for Title (with a subform for section) and I cannot link through the
subform - or can I? I hope this is clear! Thanks in advance for any help!

More information. I have changed the PK to a new autonumber PK for tblItem.
This seems to help. I am still having trouble getting the sbfrmStatement to
work properly. If I link it to sbfrmItem, then I cannot add new records. If I
leave it unbound, I don't know how to write the StatementID to the correct
field in tblItem. I'm new to coding, please be kind.

Please post the SQL view of the mainform and subform's Recordsource, and the
Master/Child Link Fields.

It's not as hard as you're making it! A two-field primary key is a bit more
hassle, but can be made to work. Note that the Master and Child Link Fields
can contain two fieldnames separated by a semicolon.
--
John W. Vinson [MVP]
.



Relevant Pages

  • Re: Continuous form and recordset
    ... > the Child and Parent Link Fields properties and Access will do this itself. ... > The link fields are properties of the subform control on the main form. ... > subform ONE time and go to the Data tab on the Properties sheet. ... >> behave like a regular continuous form listing one after the other.... ...
    (microsoft.public.access.formscoding)
  • Re: Continuous form and recordset
    ... The link fields are properties of the subform control on the main form. ... subform ONE time and go to the Data tab on the Properties sheet. ... > should show all records in the continuous form with the same id (ie ...
    (microsoft.public.access.formscoding)
  • On Current fires 5 times successively
    ... I have two subforms synchronized on a form through an unbound text box. ... To solve this I wrote code on the main form's subform enter event (I'm ... link fields but I'm not sure if it's because of my code, ... it's because I have the form linked on 3 master/child fields?... ...
    (comp.databases.ms-access)
  • Re: Change LinkChildField and LinkMasterField for a form/subform
    ... The two Link fields are properties of the subform control, ... So I want to set the LinkChildField and LinkMasterField properties for the ...
    (microsoft.public.access.forms)
  • Re: setting RecordSource vs. setting RecordSource and Filter
    ... the subforms to display nothing since the link master ... My top-level form has a subform, and a sub-subform, etc. Could I leave my ... subforms bound and then just hook up the RecordSource of my top-level form ... it loads the form without any filter, ...
    (microsoft.public.access.modulesdaovba)