Hello,
Currently, I manually open a number of text files (different names, same naming convention, same directory) and read a certain data element and enter into a table. The data element is always in the last row of text. The last row begins with "T" and is always a 6-byte field in the same position (position 10 to 16). There can be different number of rows in each file.
The data element is entered for the specific client - determined by the first 5-bytes of the file name.
The same client's file can be in the folder more than once. I need to pull both the file's data.
Files are saved to the folder 4-times a day by a mainframe job and each file gets a different datetime stamp in the name.
Is there a way to automate this with VBA where I can execute the command from a form and Access compiles this data for me?
Currently, I manually open a number of text files (different names, same naming convention, same directory) and read a certain data element and enter into a table. The data element is always in the last row of text. The last row begins with "T" and is always a 6-byte field in the same position (position 10 to 16). There can be different number of rows in each file.
The data element is entered for the specific client - determined by the first 5-bytes of the file name.
The same client's file can be in the folder more than once. I need to pull both the file's data.
Files are saved to the folder 4-times a day by a mainframe job and each file gets a different datetime stamp in the name.
Is there a way to automate this with VBA where I can execute the command from a form and Access compiles this data for me?