Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5845671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:28:05+00:00 2026-05-22T12:28:05+00:00

I have 2 subforms on the main form. Sub_2 displays the details for the

  • 0

I have 2 subforms on the main form. Sub_2 displays the details for the item chosen in sub_1, in a list. For both subform, I use the continue form, and they are bounded to 2 querys, with one field in common, say ‘id’.

What I have done is adding code in the DClick event on sub_1 to set the sub_2’s filter like

Me.Parent.sub_2.Form.Filter = "id=" & "'" & Me.Recordset!id & "'"

Then a requery

Me.Parent.sub_2.Form.Requery

But no luck, when I double click the record in sub_1, no change in sub_2. I have had a look on relevant questions, I think this should work…

Any suggestions? Maybe I should use other approach to do this?

PS: I’m sure Me.Parent.sub_2.Filter is changed, but requery doesn’t work.

EDIT:

Thanks for answers. I find the problem, that is, the ‘id’ field is in the query, but it’s not displayed on the subform, so maybe Access cannot use it.

And when the filter is changed, Access does a requery automatically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:28:06+00:00Added an answer on May 22, 2026 at 12:28 pm

    You should not need to do anything with the filter property.

    On the first subform, set the Link Master Fields and Link Child Fields properties as you would for a regular, single subform control on a form.

    For the second subform, also set the Link Child Fields property as you would for a regular, single subform control. The Link Master Fields property will reference the control name of the first subform: [Subform 1 Control Name]!FieldName.

    In the OnCurrent event of the first subform control, add the following line of VBA code:

    Me.Parent.Controls![Subform 2 Control Name].Requery
    

    Run the form. When you click a row in the first subform, the second subform will requery to display the child rows for the row selected in the first subform.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a main form with a tab control containing multiple subforms. I need
I have a main form that contains two other child subforms. When a textbox
I have a form/subform for inputting data into an ado table. The main form's
I have a main form with a register and a few subforms. I'm using
I have a form with two subforms, both of which are continuous. Each form
I have a form with a subform on it. If subform contains no records,
I have a main form with a tab control, and each tab has a
I have a main form that has multiple buttons on it that will allow
I have an Access 2003 form with one subform, set to continuous forms, in
i have 4 subforms in a form i would like to group 2 of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.