Can anyone give a brief example of the use of the Filter Function.
i.e. Filter(sourcearray,match[,include[,compare]]).
I am trying to use it in a module to identify those records where a match for a piece of text appears in a field so I can write a table of cross references.
i.e. Create a record (including field A1 and field X1) for each time field A2 from Table A contains a reference( as part of the field) to field X1 in control Table X.
So far, no matter what, my Match_IR variable in the following code, always returns an "empty" even if I know there should be a match in the records selected.
Match_IR = Filter(Find_IR, Cons_Pt, True, vbTextCompare)
I have tried various configurations of "Like *" & fieldX1 & "*" as well, to no avail.
If you have a small example to demonstrate the concept it would be appreciated. If I can trap any kind of reaction from the function I can move on with balance of the code.
Warren
i.e. Filter(sourcearray,match[,include[,compare]]).
I am trying to use it in a module to identify those records where a match for a piece of text appears in a field so I can write a table of cross references.
i.e. Create a record (including field A1 and field X1) for each time field A2 from Table A contains a reference( as part of the field) to field X1 in control Table X.
So far, no matter what, my Match_IR variable in the following code, always returns an "empty" even if I know there should be a match in the records selected.
Match_IR = Filter(Find_IR, Cons_Pt, True, vbTextCompare)
I have tried various configurations of "Like *" & fieldX1 & "*" as well, to no avail.
If you have a small example to demonstrate the concept it would be appreciated. If I can trap any kind of reaction from the function I can move on with balance of the code.
Warren