Hi All,
I am new to VBA programming although I used to program in VBScript on web applications. Anyway with some help from other forums I have some code that extracts data from a flat text file. This file has a header line and a footer line and there are 2 lines of data per employee. The first line ends in 5 and the second line ends in 4. I will post the code I have so far and hope someone can help me finish it.....
OK, what I need to do is filter out specific trades for example I would like to show every trade except "Machine Repair" I will include a couple records from the flat file.....
HDR20120710
00101000036617 5270012008085197804171984102919730621DOE BJ52702B 2571370000000001600 5
00101000036617JOHN 109080 55512345671952093000000001MACHINE REPAIR 4
00101000099788 5270002010384198910301989103019891030SMITH DS52501C 257077S000000000000 5
00101000099788BOB 109109 55523456781952082700000001ELECTICIAN-PROJECT COORD 4
00101000099920 5270002011522199103181991031819901001BLUE SJ54302B 2570770001600000000 5
00101000099920STEVEN 109109 55534567891960050400000001ELECTRICIAN 4
00101000111236 5350601002558 1984102919740815ROAST DJ53502A 5904110000000000000 5
00101000111236CHUCK 109109 55545678901952102800000001ENGINE ASSEMBLY ASSOC
OK, above are 4 records.(don't forget it begins with a header line) so my code disregards that, but I try filter out "Machine Repair" and it doesn't work. I don't know what I'm doing wrong.
Thanks in advance,
Lenny
Bookmarks