albert,
That modual code give everything in column 3 null,empty
The code I posted was:
Public Function Pluck(vData As Variant, intToken) As Variant
If IsNull(vData) Then Exit Function
On Error Resume Next
Pluck = Trim(Split(vData, "/")(intToken))
End Function
in the debug window, I type in:
? pluck("1 / 14201",2)
nothing is CORRECTLY returned for the above ((reember, 0 = frst, 1 = 2nd,
and 2 = 3rd)
In the dbug window, I get:
? pluck(" 1 / 1431110 / ROBINSON",2)
ROBINSON
so, I do'nt know why my example does not work for you, but I just tested
it..and it works fine:
In the query builder use:
i1: Pluck([check/dist],0)
i2: Pluck([check/dist],1)
i3: Pluck([check/dist],2)
If the use of "0" for the first column is too large of a mind leap for you,
then change the function to:
Public Function Pluck(vData As Variant, intToken) As Variant
If IsNull(vData) Then Exit Function
On Error Resume Next
Pluck = Trim(Split(vData, "/")(intToken - 1))
End Function
then use
i1: Pluck([check/dist],1)
i2: Pluck([check/dist],2)
i3: Pluck([check/dist],3)
The orginal function is "zero" based..and thus 0 = 1st value, 1 = 2nd value,
and 2 = 3rd value