M
mls via AccessMonster.com
I am reading a .CSV file using FileSystemObject, and one of my field (std_num
) which has null values for the first 15 rows but have a number value after
16 so how can I read that correctly?
Dim myarray() As String
Dim temp_str As String
Dim SET1 As String
Dim STD_num As Integer
temp_str = "A1,NTC,H1,Unknown,Undetermine" ' First 15 rows
temp_str = "A1,NTC,H1,Unknown,20.3, 25.34" ' 16th row
myarray = Split(temp_str, ",")
SET1 = myarray(2)
If (IsNumeric(myarray(5))) Then
STD_num = Format(myarray(5), "####.##")
Else
STD_num = 0
End If
) which has null values for the first 15 rows but have a number value after
16 so how can I read that correctly?
Dim myarray() As String
Dim temp_str As String
Dim SET1 As String
Dim STD_num As Integer
temp_str = "A1,NTC,H1,Unknown,Undetermine" ' First 15 rows
temp_str = "A1,NTC,H1,Unknown,20.3, 25.34" ' 16th row
myarray = Split(temp_str, ",")
SET1 = myarray(2)
If (IsNumeric(myarray(5))) Then
STD_num = Format(myarray(5), "####.##")
Else
STD_num = 0
End If