Results 1 to 13 of 13
  1. #1
    mhe5026 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    6

    Split up one record into multiple sub-forms using navigation option

    I have one single form with multiple sub-forms that are used to split up one record. The record had many fields, and I thought it would be easier for the user. I wanted to set each of the sub-forms to the properties "data entry" option so it would only store records in the table and not in the forms to speed up the forms. However, every time I click through the tabs it starts a new record for each of the subforms and I may have 10 records in my table as I intended to be one. I want all the sub-forms and the fields in them to be treated as one record, with one "data entry" property. Is this possible?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I would try a tab control instead of subforms.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mhe5026 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    6
    Thats what I have. Multiple tabs that open up various subforms. Im just having trouble keeping them all on the same record.

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Subforms are used to display a typical One-To-Many relationships and not for splitting a single record. The subform, when linked correcly, display the details of each master record. For ex. a subform can show a list of order details(list of items ordered,quantity etc) for a particular order. See here for more on it http://www.techonthenet.com/access/subforms/link.php
    I wanted to set each of the sub-forms to the properties "data entry" option so it would only store records in the table and not in the forms to speed up the forms
    Records are always stored in table and forms serve as medium to add/edit data in a "presentable" manner to the user. Can's understand what you mean by "speed up the forms" ??

  5. #5
    mhe5026 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    6
    Or at least how would I make an "Add new Record" Command Button that worked across all subforms at once. I think that is what would solve this.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Why do you have subforms for a single record? Just have textboxes organized on tabs.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    mhe5026 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    6
    I broke up the some 60 fields I have into categories and made them separate forms. I used the navigation control, which opens up a sub-form that views other forms.

  8. #8
    mhe5026 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    6
    sub-form, a form within a form.

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I'm well aware of what a subform is; I use them frequently. This just isn't the proper situation for them. If the data is all in one table, it can (and I think should) be represented on one form (or subform), with a tab control to organize the fields logically.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    mhe5026 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    6
    That would make my screen about a mile long, and navigating difficult for the user (If all fields were inserted into one form). This is for building maintenance, it's not a four or five question form. Any suggestions on breaking up the questions? My idea was too separate the questions into categories, making a separate form for each category (so, if for later, i wanted to add more questions to the forms in certain categories it would be easier) and then making one MAIN FORM that would use the navigation control (which pretty much previews other forms or "sub-forms" by use of tabs) to go to the selected categories. I just want all sub forms on the main forms to correspond to the same record. I know i can do that if I can make an add new record button that works accross all subforms at one time. Just don't know the code. This is an undoubtedly an appropriate way to separate content. There's what my form looks like so far. If you can't answer the question, please don't respond.

    Click image for larger version. 

Name:	VAVFORMS.PNG 
Views:	17 
Size:	38.8 KB 
ID:	17674

  11. #11
    eki einstein's Avatar
    eki einstein is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Bekasi - Jawa Barat- Indonesia
    Posts
    26
    i think you canot doit by navigiation form, but i understand what you mean about give the user more user friendly GUI, i suggest flow form, yes it split the form to separate part, this some example DB whit flowing formflowingform sample1.accdb
    Last edited by eki einstein; 08-06-2014 at 01:17 PM. Reason: fix the database file

  12. #12
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I broke up the some 60 fields
    Doesn't sound like a normalized table, but I don't know the requirements.

    Using a TAB control instead of subforms has been suggested twice. I am in total agreement with Paul.
    If you had a normalized structure, then probably I would use subforms.
    If you do more than one inspection on one building, I would look into normalizing the table structure.

    That would make my screen about a mile long, and navigating difficult for the user (If all fields were inserted into one form).
    Maybe not. Again, I don't know how many fields (controls) you have in the current subforms, but a TAB page will hold lots of controls if they are sized correctly.

    make an add new record button that works accross all subforms at one time. Just don't know the code
    In the click event, add a line for each subform to append a new record (insert into...)
    BUT, if each subform is tied to the same record and you have 8 subforms, you would insert 8 new records.

    Soooooo, one record with 60 fields = use TAB control.


    If you can't answer the question, please don't respond.
    Good luck with your project. With statements like that, I don't think you will get much help. You asked, you received answers. Maybe not the answers you wanted, but.....


    BTW, in your form, in the last control label LOCATION is misspelled

    I'm gone........

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Subforms on a tab control are not appropriate for this situation. Distributing fields over multiple pages of tab control is simplest and easiest approach. Why would screen be 'a mile long' with use of tab control? Idea of tab control is to compact the form. Why would navigating a tab control be more difficult than navigating a navigation form?

    Code to 'create new record on all subforms' makes no sense because there IS ONLY ONE RECORD.

    The record is created with first data entry to any one of the subforms. My understanding of navigation control/form is that the subforms are not all active at the same time. Save the record then other subforms open filtered to the just saved record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-23-2014, 05:25 AM
  2. Split One Record Into Multiple Records
    By alsoto in forum Access
    Replies: 1
    Last Post: 03-14-2013, 11:56 AM
  3. Navigation Record Buttons in Forms
    By jaarons in forum Forms
    Replies: 4
    Last Post: 01-02-2013, 09:57 PM
  4. Filter Multiple Forms from one option box
    By chaos_05 in forum Forms
    Replies: 1
    Last Post: 12-02-2011, 10:39 AM
  5. Replies: 2
    Last Post: 01-27-2011, 08:04 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