Hello all.
I am stumped. I have a module in Access that I am using to import data from a text file. Because the data I am importing has two lines per transaction, I am trying to bring both lines in.
This is what I have in VB:
If StrComp(Mid(strFileData, 61, 4), ".00 ", vbBinaryCompare) = 0 Then
strShortName = Mid(strFileData, 15, 26)
'End If
I had to put a space after .00 because the line above is also monetary, but has a - behind it. If I don't put a space behind the .00, Visual Basic is looking at both lines and pulls in data all ove the place.
When I put the space after the .00, nothing is being imported.
Any ideas or advice? Thank you for your help.
I am stumped. I have a module in Access that I am using to import data from a text file. Because the data I am importing has two lines per transaction, I am trying to bring both lines in.
This is what I have in VB:
If StrComp(Mid(strFileData, 61, 4), ".00 ", vbBinaryCompare) = 0 Then
strShortName = Mid(strFileData, 15, 26)
'End If
I had to put a space after .00 because the line above is also monetary, but has a - behind it. If I don't put a space behind the .00, Visual Basic is looking at both lines and pulls in data all ove the place.
When I put the space after the .00, nothing is being imported.
Any ideas or advice? Thank you for your help.