A family of Microsoft relational database management systems designed for ease of use.
Maybe some fields don't have five field parts.
Try this modification:
Public Function SplitField(ByVal Value As String, ByVal Index As Integer) As Variant
If Ubound(Split(Value, ",")) >= Index - 1 Then
SplitField = Split(Value, ",")(Index - 1)
Else
SplitField = Null
End If
End Function