• Use VBA to change a criterion

    Author
    Topic
    #498347

    Using VBA, how can I change a criterion in the source recordset of a subform? Example: change a criterion for a field from True to False.
    Many thanks.

    Viewing 2 reply threads
    Author
    Replies
    • #1486624

      Does using the Me.Filter command work?

    • #1486630

      Yes, it does, but only from within the subform. I was trying to effect the change from the main form using Forms!mainform!subform.filter and that does not seem to work. I can muddle on, but it is less elegant than I had hoped. Thanks for the response.

      • #1486640

        Yes, it does, but only from within the subform. I was trying to effect the change from the main form using Forms!mainform!subform.filter and that does not seem to work. I can muddle on, but it is less elegant than I had hoped. Thanks for the response.

        I think you may also have to set .FilterOn = True

    • #1486715

      An option box in the subform header got the response I needed.
      Thank you all for your help. It is so very GOOD to know I have access to such a resource!
      Sanora

    Viewing 2 reply threads
    Reply To: Use VBA to change a criterion

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: