Results 1 to 2 of 2
  1. #1
    subx is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    1

    Question Main/Subform relationship not working

    I've got a single table that I'd like to feed a form/subform with and have it controlled by a drop down box



    1. Assets table showing asset details
    2. Main form - This will have a combo box showing the main asset catagories
    3. Subform - This will show the details of the assets

    I have a combo box called Comb0 that has a catagory value

    I have added the following VBA script:

    Private Sub Combo0_AfterUpdate()

    Assets.Form.Filter = "[Catagory]= '" & Combo0 & "'"
    Assets.Form.FilterOn = True

    End Sub


    When I run the form and select a catagory in the drop down I get it leaves the subform blank without any values. I've attached a copy of the database in the following link:

    https://drive.google.com/open?id=0B7...0VkVnB0bHhRYlU

    Thanks,

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Why are you not using the LinkMaster/ChildFields properties of the Sub Form Control?

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

Similar Threads

  1. Relationship not working
    By rgg in forum Database Design
    Replies: 3
    Last Post: 01-23-2016, 11:23 AM
  2. Replies: 1
    Last Post: 11-04-2015, 07:25 AM
  3. Relationship not working as it should
    By Clems in forum Database Design
    Replies: 4
    Last Post: 04-22-2013, 09:43 AM
  4. Replies: 2
    Last Post: 11-16-2012, 02:29 PM
  5. Replies: 1
    Last Post: 09-28-2009, 05:21 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