Here's a simplified version of what I'd like to do with a click of a button. I can't even begin coding it because I don't know if it's a VBA solution, SQL, or some combination. Plus my programming skills are very limited so forgive me for not giving it a solid attempt before asking for help.
I have .rtf files in a folder called "Complete". The file names are formatted as Name_987654321.rtf, where 987654321 is a unique record number (RecNum).
I have a table (tblCompletionLog)with fields RecNum, Name, and CompletionDate.
I'd like to read each file in the folder, extract the RecNum and Name from the filename and the CompletionDate from the LastModifiedDate of the file, then append the records to tblCompletionLog.
Once the log is captured and appended to the table, I'd like to move the file to a different folder called "Archive".
I hope this makes sense and someone can offer some valuable code to help me along with it. Thanks.
I have .rtf files in a folder called "Complete". The file names are formatted as Name_987654321.rtf, where 987654321 is a unique record number (RecNum).
I have a table (tblCompletionLog)with fields RecNum, Name, and CompletionDate.
I'd like to read each file in the folder, extract the RecNum and Name from the filename and the CompletionDate from the LastModifiedDate of the file, then append the records to tblCompletionLog.
Once the log is captured and appended to the table, I'd like to move the file to a different folder called "Archive".
I hope this makes sense and someone can offer some valuable code to help me along with it. Thanks.