This may seem like a silly and beginner question, but I haven’t found the answer anywhere.
I have a form, with a subform in it, and I need to filter a field on the subform (list), based on the value of another field in the main form (card).
For example, my current record in the main form has a field called “type”, and its value is ‘abc’, I want to filter the subform’s “type” field with the value ‘abc’. Only the lines whose “type” value is ‘abc’ should appear on the subform.
I did. But I haven’t been able to filter the subform.
In any case, i’d prefer to filter the subform via code, since I need to set another condition, in which the filter depends on the value of another field in the form…
Also, just think about where you put your code. OnAFTERGetRecord. As in you have already gotten the data. Would you filter the data after you’ve already gotten it from the database, or before?