Hello all.
Sigh. I am at my wits end ... again. HiTechCoach was trying to assist me as well on something similar, but I am still at a loss.
I have a module in Access that I use to import data into a table and it works great. However, there is one line that I want to pull in, but I don't know what the heck I am doing.
The text file looks something like this:
Alternate Account: 100/000000024681012141618
Ashton Kutchter
To bring in the Alternate Account number I used:
If StrComp(Mid(strFileData, 1, 9), "Alternate", vbBinaryCompare) = 0 Then
strAlt = Mid(strFileData, 31, 14)
End If
That works great.
My issue is grabbing the customer name (Ashton Kitcher)
If InStr("Alternate", vbCrLf) > 0 Then
strCustomerName = Mid(strFileData, 1, 43)
End If
I am sure that will give some of you a chuckle. Of course nothing comes back.
Please help. Thank you.
Sigh. I am at my wits end ... again. HiTechCoach was trying to assist me as well on something similar, but I am still at a loss.
I have a module in Access that I use to import data into a table and it works great. However, there is one line that I want to pull in, but I don't know what the heck I am doing.
The text file looks something like this:
Alternate Account: 100/000000024681012141618
Ashton Kutchter
To bring in the Alternate Account number I used:
If StrComp(Mid(strFileData, 1, 9), "Alternate", vbBinaryCompare) = 0 Then
strAlt = Mid(strFileData, 31, 14)
End If
That works great.
My issue is grabbing the customer name (Ashton Kitcher)
If InStr("Alternate", vbCrLf) > 0 Then
strCustomerName = Mid(strFileData, 1, 43)
End If
I am sure that will give some of you a chuckle. Of course nothing comes back.
Please help. Thank you.