HoW to trap this error?
In effect i want to insert in field5 the first member of splitting, and in field6 the second if is >""...
part ofg code
Code: Select all
Dim VAR_SPLIT() As String, INTX As Long, VAR_SPLIT_1 As String
VAR_3 = Trim(Mid(strLine, 171, 12))
VAR_SPLIT = Split(VAR_3, " ")
For INTX = 0 To UBound(VAR_SPLIT)
If VAR_SPLIT(INTX) > "" Then
RST.Fields(5) = VAR_SPLIT_1
End If
If VAR_SPLIT(INTX + 1) > "" Then
RST.Fields(6) = VAR_SPLIT_1
End If
Next