Results 1 to 4 of 4
  1. #1
    Njliven is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    86

    Subform in a Subform


    I have a Main Form with a subform and that suform has a subform. It is all working in a single form view. I would like both of the subforms to be in datasheet view. Is this possible? It let me change the views to datasheet view, but only the first subform shows up. The other form does not show. Any suggestions would be very helpful. Thanks!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by Njliven View Post
    I have a Main Form with a subform and that suform has a subform. It is all working in a single form view. I would like both of the subforms to be in datasheet view. Is this possible? It let me change the views to datasheet view, but only the first subform shows up. The other form does not show. Any suggestions would be very helpful. Thanks!
    I don't think a datasheet form can have a subform. Perhaps your first subform could be shown as a continuous form that looks like a datasheet.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    A Datasheet View Form can, in fact, have a Subform, but it appears as a (+) (Plus Sign) on the Parent Form Record. To view the Subform(s) for a given Record you click on the (+). In order for all of the Subforms to be dropped down when your MainForm (Parent Form Record) opens, in, that Parent Form Record use this code
    Code:
    Private Sub Form_Load()
      Me.SubdatasheetExpanded = True
    End Sub

    As Continuous View Form cannot, natively, contain a Subform. The workaround for having a Subform when the Main Form is in Continuous View requires that you put the Subform either in the Header or the Footer of your Main Form. TO escape the wrath of the Access Gnomes you have to:

    • Create your Main Form in Single Form View
    • Place the Subform in Header or Footer, whichever you like
    • Save the Form
    • Now go into Properties and change the Form's Default View to Continuous View Form

    Linq ;0)>

  4. #4
    Njliven is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    86
    It was working all along, I just could not see that it was working until I put a record in the subform. The the the plus sign showed up and I could add records to the then to that subform. So the second subform actually shows per each record in the 1st subform. Thanks for the help. Hopefully this will help someone else with the same issue.
    Last edited by Njliven; 07-25-2012 at 10:52 AM.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  2. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  3. Replies: 4
    Last Post: 03-30-2012, 01:47 AM
  4. Replies: 1
    Last Post: 11-29-2011, 01:37 AM
  5. Replies: 7
    Last Post: 07-15-2011, 01:58 PM

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