I am a novice with Access, so please bear with me. Here are the basics of what I am trying to do, and the problem I am encountering:
1. I have a .txt file named Dailystats.txt
2. I have an Excel workbook named Dailystats.xls with an Auto_open macro that imports the data from Dailystats.txt, formats the data, and then saves and closes the Excel workbook.
3. I have an Access macro which open the Excel file, and then imports the resulting data into my Access table.
4. The process works fine the first time I run it, but once I edit the .txt file and run through the entire process a second time, Access imports the original set of data. If I then run the same macro in Access a second time, it imports the correct data.
5. I've gone through each step individually to ensure that the .txt file and the Excel macro are functioning properly, and they are. The problem only exists on the first attempt of running the Access macro with new data. On the second try, the data imports correctly.
6. I've created a delete query to strip out the duplicated records that are created the first time I run the Access macro, but I'd like to figure out the correct solution.
Can anyone help?
1. I have a .txt file named Dailystats.txt
2. I have an Excel workbook named Dailystats.xls with an Auto_open macro that imports the data from Dailystats.txt, formats the data, and then saves and closes the Excel workbook.
3. I have an Access macro which open the Excel file, and then imports the resulting data into my Access table.
4. The process works fine the first time I run it, but once I edit the .txt file and run through the entire process a second time, Access imports the original set of data. If I then run the same macro in Access a second time, it imports the correct data.
5. I've gone through each step individually to ensure that the .txt file and the Excel macro are functioning properly, and they are. The problem only exists on the first attempt of running the Access macro with new data. On the second try, the data imports correctly.
6. I've created a delete query to strip out the duplicated records that are created the first time I run the Access macro, but I'd like to figure out the correct solution.
Can anyone help?