• Filter gone when form becomes subform. (A2K)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Filter gone when form becomes subform. (A2K)

    Author
    Topic
    #374109

    I build a dynamic filter from criteria entered to a search form.
    I open Form (A) and apply the filter with “DoCmd.OpenForm stDocName, , , stCriteria”.
    A button on form (A) opens form ( which includes form (A) as a subform.
    The filter is gone from the SubForm (A), and it shows all records – although form (A) is still open and filtered.

    Does anyone know what is wrong? Thanks!

    Randy

    Viewing 0 reply threads
    Author
    Replies
    • #604023

      Open Form A as a subform to Form B has nothing to do with it being opened by itself. You could open FormA as a subform on any number of other forms. A subform is not considered an open form, in that it is not in the Forms collection.

    Viewing 0 reply threads
    Reply To: Filter gone when form becomes subform. (A2K)

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

    Your information: