Results 1 to 5 of 5
  1. #1
    cbuechner is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Jan 2021
    Posts
    60

    Re query subform

    Ok, I thought I had this, but I am missing something.

    I have a form called lab. On the subform, there is a subform that displays data that is query. The query results are a direct result of the data from the main form. I would like the subform to update as a result of the values the user is entering into the main form.

    I tried

    Me.Requery

    But this resets the main form. Im researching, but cant figure this out.

  2. #2
    cbuechner is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Jan 2021
    Posts
    60
    Sorry...on the main form "lab" there is a subform.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    see if you can figure it out (& maybe bookmark this page)

    http://access.mvps.org/access/forms/frm0031.htm
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    cbuechner is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Jan 2021
    Posts
    60
    Not understanding it. I'm trying everything I can

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    Try Forms!MainFormNameHere.SubformControlNameHere.Form .Requery

    or if the code is on the main form, can use

    Me.SubformControlNameHere.Form.Requery

    Other syntaxes may work but I find neither of those has ever failed to work, unless you have a navigation form. That is a different animal.
    Your subform control name might be the same as the form you're using as the subform. I don't allow that.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 6
    Last Post: 07-08-2020, 12:26 PM
  2. Replies: 1
    Last Post: 12-05-2016, 02:23 PM
  3. Sum of Subform from a Query
    By keiath in forum Forms
    Replies: 8
    Last Post: 02-28-2014, 10:32 AM
  4. Replies: 18
    Last Post: 02-14-2014, 05:06 PM
  5. Replies: 5
    Last Post: 05-11-2011, 07:32 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