jdawg_1989
Registered User.
- Local time
- Today, 03:13
- Joined
- Apr 8, 2011
- Messages
- 21
I have a query that when runs return data like the following
Field 1 | Field 2
Jon | 123456, 12345678, 234567, 987654
Bob | 457891, 73892, 635279
There will only ever be a maximum of 8 records separated by ", " in Field 2 and so far I have tried the following mudule with no luck.
When using the above in a query I am getting Run-time Error '13' and it is falling over on:
Thanks in advance.
Field 1 | Field 2
Jon | 123456, 12345678, 234567, 987654
Bob | 457891, 73892, 635279
There will only ever be a maximum of 8 records separated by ", " in Field 2 and so far I have tried the following mudule with no luck.
Code:
Public Function ParseSNE(AnyString As String, Element As Integer) As Integer
Dim MyArray
'/Expunge to an array
MyArray = Split(AnyString, "/ ")
'/return the port requested
ParseSNE = MyArray(Element - 1)
End Function
Code:
ParseSNE = MyArray(Element - 1)