Forum Discussion

Tony2021's avatar
Tony2021
Steel Contributor
Dec 31, 2021

OpenArgs, Filter

Hello Experts,   I have a form that has On Load that opens if Nz OpenArgs.  The form's data tab shows its filtered to [LetterOfCreditID] = xx (whatever record the [LetterOfCreditID] was filtered to...
  • Karl_Donaubauer's avatar
    Karl_Donaubauer
    Dec 31, 2021

    Hi,

     

    I did a quick test with that setting and it works here, i.e. the ApplyFilter macro filter gets replaced by the new filter. Maybe in your case there's sth else involved. What happens when you try it? Nothing at all?

     

    Personally I would not mix VBA mit a macro but do all filtering by code with

    Me.Filter = ...

     

    Maybe this also enables you to set back the filter as described, by just calling OnLoad again. No Requery/Refresh etc. is necessary when I do this here. I just have to change the Filter property.

     

    Servus
    Karl
    ************
    Access News
    Access DevCon

Resources