Leo_Polla_Psemata
Registered User.
- Local time
- Today, 13:12
- Joined
- Mar 24, 2014
- Messages
- 364
Hi
From this thread,
http://www.access-programmers.co.uk/forums/showthread.php?t=149053
i tried to use this code
But it returns this error
Could someone enlighten me about it ?
What should I do/ type ?
I want to use this function in a query and split text like this
MyField1:SplitFile(1,[YourUnSplitFieldName],",")
MyField2:SplitFile(2,[YourUnSplitFieldName],",")
MyField3:SplitFile(3,[YourUnSplitFieldName],",")
From this thread,
http://www.access-programmers.co.uk/forums/showthread.php?t=149053
i tried to use this code
Code:
Public Function SplitFile(intField As Integer, strValue As String, strDelimiter As String) As String
Dim varSplit As Variant
varSplit = Split(strValue, strDelimiter, , vbTextCompare)
SplitFile = varSplit(intField)
End Function
But it returns this error

Could someone enlighten me about it ?
What should I do/ type ?
I want to use this function in a query and split text like this
MyField1:SplitFile(1,[YourUnSplitFieldName],",")
MyField2:SplitFile(2,[YourUnSplitFieldName],",")
MyField3:SplitFile(3,[YourUnSplitFieldName],",")