Results 1 to 3 of 3
  1. #1
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    124

    Split form as a subform

    I am trying to create a Split Form (all fields at top of screen with a data sheet view list of filtered records at the bottom) so that if you search for some criteria and you get say 25 results, you can see then all rather than just 1 of 25 you would see in a single form. You then can select the desired record from the datasheet view and the top 1/2 of the screen would reflect that record. This works fine if I change the default view of a single form to Split Form. However, my issue is that I want the whole lot as a subforum inside a master form. If I then drag the split form into the master form, I no longer can see the datasheet part of it. And if I make it a single form with a datasheet subforum both based on the same query, the datasheet subforum only shows the selected record in single form (not the 25 records that are the result of the search) If I run the source query on its own, I see all 25 results. I have tried Requiring both the form and subforum after update of the search button but that doesn’t seem to work.

    Any ideas on how to get the split form to work as a sub form? Thanks

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,938
    the datasheet subforum only shows the selected record in single form
    remove the linkchild and linkmaster properties of the subform control

    The subform will need some code in the current event - something like

    Parent.filter="PK= " & Me.PK
    parent.filteron=true

  3. #3
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    124
    Thats done it Thanks

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

Similar Threads

  1. Replies: 20
    Last Post: 09-21-2018, 12:16 PM
  2. Replies: 8
    Last Post: 08-10-2017, 04:52 PM
  3. Replies: 2
    Last Post: 05-09-2014, 03:01 PM
  4. Replies: 1
    Last Post: 04-14-2014, 01:38 PM
  5. Reset Page Number in a Split Form with a Subform
    By Greg Lemaster in forum Forms
    Replies: 3
    Last Post: 08-09-2012, 02:04 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