Solved
I need help with a batch file import into MS Access or through MS SQL
Posted on 2011-09-04
Hi Gurus
I have a batch file that comes from a scanner in the form of a txt file. The file looks like this:
LOC-AA-AB-1,1
31-3-188-1702,25
7-3-188-1699,30
7-3-188-1700,12
LOC-C-C-1,1
7-3-189-1707,45
9-1-8-1040,30
The Items With LOC as the first three letters are Bin locations
The Items following need to be allocated to the bins above, so looking at this file :
LOC-AA-AB-1,1 -- Is bin1
31-3-188-1702,25 - stock - bin1
7-3-188-1699,30 - stock - bin1
7-3-188-1700,12 - stock - bin1
LOC-C-C-1,1 -- bin2
7-3-189-1707,45 - stock - bin2
9-1-8-1040,30 - stock - bin2
The number after the comma denotes qty. I am not sure how to get this right without creating individual batch files which is not practical for my client. Any help with this will be very much appreciated.
Regards
Alan