Results 1 to 2 of 2

Thread: How to Requery a List in Child in another Child on a form.

  1. #1

    Thread Starter
    Hyperactive Member Animelion's Avatar
    Join Date
    Jan 2001
    Location
    Jacksonville NC
    Posts
    283

    How to Requery a List in Child in another Child on a form.

    I have lets say Form1 with a subdatsheet on it. This sub datasheet is named Child2 and Links to Form2. On Form 2 I have another sub datasheet named Child3, and this links to Form3. If I am viewing Form1, how can I requery a list named List1 on Form3 ?

    Form1
    ---SubDatasheet Child2 = Form 2

    Form 2
    ---SubDatasheet Child3 = Form 3

    Form 3
    ---List1


    ---Failed attempts so far---
    Form_Form1.child2.child3.List1.requery
    Form_Form3.List1.requery

    Much thanks for any help I can get. ~Bryan
    ~ Animelion

  2. #2
    New Member
    Join Date
    Jan 2006
    Posts
    13

    Re: How to Requery a List in Child in another Child on a form.

    From the main form (Form1) create a button that has this code:

    Me!Child2!child3!List1.Requery

    Your problem was using the . operator where you should have been using the bang operator. The Me refers to the form that contains the button.

    Be careful about nesting so many sub forms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width