alienscript
Registered User.
- Local time
- Yesterday, 23:39
- Joined
- Jul 17, 2004
- Messages
- 20
Hi Access experts,
I have this Access problem with the file to be imported having different filenames and one way to know its latest copy is by looking at the file's Modified Date from the Windows Explorer. (I am using network WindowsXP and my Explorer path has its Target at "%SystemRoot%\explorer.exe" and Start in "%HOMEDRIVE%%HOMEPATH%"
1.1) How VB code to add order to let Access using transferSpreadsheet acImport the Excel file from a specified folder with the latest "modified date", as can be seen from the Window Explorer ?
(this is because the Excel data is updated only on every Tuesday with different filenames, therefore I auto fire-up my Access database on every Tuesday 6.00pm to import the spreadsheet with (i)only the latest modified date or (ii)alternatively the excel file with the system now() date).
1.2) How to let Access open up Windows Explorer (i assume using RunApp) to default as the path D:\weekly Service Data\
Then pop up a dialog box MsgBox "the Excelfile you want to process is having
the latest Modified Date ?"
Click YES and the Windows Explorer must close.
Click NO and the Dialog box must close but the Windows Explorer remains
open.
Apprecite very much for any help offered.
Thanks in anticipation.
I have this Access problem with the file to be imported having different filenames and one way to know its latest copy is by looking at the file's Modified Date from the Windows Explorer. (I am using network WindowsXP and my Explorer path has its Target at "%SystemRoot%\explorer.exe" and Start in "%HOMEDRIVE%%HOMEPATH%"
1.1) How VB code to add order to let Access using transferSpreadsheet acImport the Excel file from a specified folder with the latest "modified date", as can be seen from the Window Explorer ?
(this is because the Excel data is updated only on every Tuesday with different filenames, therefore I auto fire-up my Access database on every Tuesday 6.00pm to import the spreadsheet with (i)only the latest modified date or (ii)alternatively the excel file with the system now() date).
1.2) How to let Access open up Windows Explorer (i assume using RunApp) to default as the path D:\weekly Service Data\
Then pop up a dialog box MsgBox "the Excelfile you want to process is having
the latest Modified Date ?"
Click YES and the Windows Explorer must close.
Click NO and the Dialog box must close but the Windows Explorer remains
open.
Apprecite very much for any help offered.
Thanks in anticipation.