E_DPSG
Board Regular
- Joined
- Jul 17, 2008
- Messages
- 82
Hello all experts -
I am trying to figure out the best way to do the following:
Import an system generated report (Exported to a directory every hour) into a master table.
The file naming structure is as follows:
\\MyDir\ReportName1.DDMMYYYY.HHMMSS.xls
Where MyDir = the directory structure (shared network drive)
ReportName1 = The name of the report
DDMMYYYY =the day the report was generated
HHMMSS - the time the report was generated
What I need to do is import each of the files that have not previously been imported. I do not want to have multiple linked tables, just a single master with two additional fields - as you can guess - the date and the time in two fields. I would think that these two fields would be able to be used as a check for the [iif file previously imported] statement.
I am fairly good with VBA, but when it comes to importing multiple files like this, I am horrible and need some guidance/help.
I am trying to figure out the best way to do the following:
Import an system generated report (Exported to a directory every hour) into a master table.
The file naming structure is as follows:
\\MyDir\ReportName1.DDMMYYYY.HHMMSS.xls
Where MyDir = the directory structure (shared network drive)
ReportName1 = The name of the report
DDMMYYYY =the day the report was generated
HHMMSS - the time the report was generated
What I need to do is import each of the files that have not previously been imported. I do not want to have multiple linked tables, just a single master with two additional fields - as you can guess - the date and the time in two fields. I would think that these two fields would be able to be used as a check for the [iif file previously imported] statement.
I am fairly good with VBA, but when it comes to importing multiple files like this, I am horrible and need some guidance/help.