Results 1 to 3 of 3
  1. #1
    smbrush is offline Experienced Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2018
    Posts
    30

    Subform Link Field Conflict

    I have a form with a subreport. The SourceObject property of the subreport is set at design time. The form has a textbox control in which the user can set a filter. The LinkMasterFields and LinkChildFields properties of the subreport are set to the form textbox and the subreport column to be filtered, respectively, using VBA code.

    Another form control, an option group, allows the user to change the subreport's SourceObject property. However, a problem occurs if the form textbox is set to filter the subreport. The linking column disappears from the subreport. If the filter is removed and the SourceObject property is reset, the lost column reappears. Filters can then be set on the subreport without the loss of the linking column. However, if the SourceObject property is set again from the form, the linking column disappears again.



    What can I do to prevent the disappearance of the linking column when the SourceObject property is set while a filter is applied from the main form?

  2. #2
    Beetle is offline Unrelatable
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    Camp Swampy (Denver, CO)
    Posts
    207

  3. #3
    Beetle is offline Unrelatable
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    Camp Swampy (Denver, CO)
    Posts
    207
    @smbrush

    If you are going to cross post, please let people know so they can review the other thread to see if a solution has already been provided.

    Regarding your current problem, are you able to post a stripped copy of your db that can demonstrate the problem?

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

Similar Threads

  1. Write Conflict in subform
    By RayMilhon in forum Access
    Replies: 11
    Last Post: 09-16-2016, 01:50 PM
  2. Key field case conflict
    By ZodiacPilot in forum Access
    Replies: 3
    Last Post: 09-10-2015, 11:04 PM
  3. Replies: 1
    Last Post: 02-20-2012, 01:59 PM
  4. Replies: 3
    Last Post: 01-05-2012, 07:15 PM
  5. Replies: 1
    Last Post: 07-26-2011, 05:18 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