I'm trying to read this file and I want to find the total records within the file.
Search the file and find the value (ID and give the total records found in the file
so I'm trying to loop through.
How can I find the total records in the file based on what I have?
For filecntr = 1 To 3
Filex = "C:\VB PROJECTS\File\KM0" & CStr(filecntr) & "J501"
If (FileExists(Filex) = True) Then
Open Filex For Input As #1
If Not EOF(1) Then
Line Input #1, TextLine
End If
Do While Not EOF(1)
If InStr(TextLine, "ID:") > 0 Then
Search the file and find the value (ID and give the total records found in the file
so I'm trying to loop through.
How can I find the total records in the file based on what I have?
For filecntr = 1 To 3
Filex = "C:\VB PROJECTS\File\KM0" & CStr(filecntr) & "J501"
If (FileExists(Filex) = True) Then
Open Filex For Input As #1
If Not EOF(1) Then
Line Input #1, TextLine
End If
Do While Not EOF(1)
If InStr(TextLine, "ID:") > 0 Then