Results 1 to 2 of 2
  1. #1
    LordPanzer is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Posts
    5

    Subforms Inside Subforms

    I'm trying to create a multiple nested form that gives the user the ability to add multiple submissions to fields inside of the form and or subform before it. First off if I was in control of how the program structure was I would not be making what looks like a mess, but I was asked to create it in this specific way. The struture should be holding 'ID' which is the main key in the main form and all three subforms.

    Correct Structure Picture
    The 'ID' are simply a increment and 'ID' Function shows what should happen when a second 'ID' is created and how they branch off.

    Relationship Picture
    The current setup uses 'Main Table ID' then ties it to 'Function ID' which is a number not an autoNumber. Table 'Function FunctionID' is an autoNumber and the cycle continues tell 'Phase & Effects'. I would simply put ID as the Main key and autoNumber in each teable but it gives me an error each time.



    Current Structure Picture
    The current structure I have is placing sub form information in each main form submittion creating duplicate values, this picture contains what is stored in the 'Main Table'.

    Form Picture
    This is just to show you the setup I currently have and if you have thoughts on possible restructuring, but it is not a main concern.

    Access Pictures.zip

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    My comments:

    You should only use letters, numbers and possibly the underscore (_) in names. No punctuation! No spaces.
    http://access.mvps.org/access/tencommandments.htm

    Do not use reserved words for object names. "System" and "Function" are reserved words.
    See http://office.microsoft.com/en-us/ac...010030643.aspx


    You should find a naming convention you like and use it consistently.
    Here is one http://access.mvps.org/access/general/gen0012.htm
    Or you can make up your own...
    Or Google "Naming conventions".

    I add "_PK" to the primary key and "_FK" to foreign keys.
    Example:
    Main table: SystemID_PK
    Function table: SystemID_FK


    Another convention is that the table PK is always the first field in the table.

    "ID" is a poor field name. "SystemID" or "FunctionID" are better names.

    You shouldn't use multi-value fields. (It looks like "Phase(s)" might be a MVF)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using subforms
    By dkeeper09 in forum Forms
    Replies: 6
    Last Post: 10-28-2011, 09:48 AM
  2. Subforms 101
    By JFo in forum Forms
    Replies: 7
    Last Post: 10-06-2011, 11:10 PM
  3. subforms
    By agmorgan in forum Access
    Replies: 1
    Last Post: 08-08-2011, 06:32 AM
  4. SubForms
    By duckie10 in forum Access
    Replies: 4
    Last Post: 05-17-2009, 07:15 PM
  5. Subforms
    By henryclay in forum Access
    Replies: 0
    Last Post: 07-24-2007, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums