gripper111
IS-IT--Management
Hello Members,
I am seeking advice for the following issues. I have a table in Access 2007 named "tblLogFiles" It has 5 text fields.
I have a directory on my local machine C drive named "log Files".
I have a script that runs throughout the day at different times which creates an output file to an excel .csv formatted file. Each one has a different name but is deposited into the same folder directory.
What I would love to be able to do is to have a cmd button on a form and when click it will go into that file and upload each .csv and append to this table and put a date this was done and the original file name. (example c:\log files\system1\12345.csv. The output in access table should be reduced to just "12345.csv" I do not need the entire path)
So for instance let say I have 10 files in that directory. Each file has log files that can range from 10 entries to 100. When clicking the button it will go to the first file in this directory import and append to the "tblLogFile" then date stamp and place the file name for each entry from that .csv file, then move on to the next file and so on until done. There may be several dozen files in this directory at any given time because I do not import everyday. Usually once a week or when I have time.
I would love some advice and perhaps some ideals on vba for an onclick command to do this procedures.
Thanks for you help
I am seeking advice for the following issues. I have a table in Access 2007 named "tblLogFiles" It has 5 text fields.
I have a directory on my local machine C drive named "log Files".
I have a script that runs throughout the day at different times which creates an output file to an excel .csv formatted file. Each one has a different name but is deposited into the same folder directory.
What I would love to be able to do is to have a cmd button on a form and when click it will go into that file and upload each .csv and append to this table and put a date this was done and the original file name. (example c:\log files\system1\12345.csv. The output in access table should be reduced to just "12345.csv" I do not need the entire path)
So for instance let say I have 10 files in that directory. Each file has log files that can range from 10 entries to 100. When clicking the button it will go to the first file in this directory import and append to the "tblLogFile" then date stamp and place the file name for each entry from that .csv file, then move on to the next file and so on until done. There may be several dozen files in this directory at any given time because I do not import everyday. Usually once a week or when I have time.
I would love some advice and perhaps some ideals on vba for an onclick command to do this procedures.
Thanks for you help