Microsoft
Software
Hardware
Network
Question : What is the VBA to do this in Access?
Hi Experts,
I have a VB script that runs a data extraction routine. Once the extraction is complete a text file will be created.
The VB script is executed using
Shell "CScript ""C:\Documents and Settings\rng\My Documents\LCL\NDW_Data_Ext
ractor_Usi
ng_GoldLoa
d\Gold_Loa
d_Export_S
cripts\Exp
ort.vbs"""
, vbHide
I want to create a VBA to detect if the text file has been created or not. If created then the VB script will run again.
How can this be done?
Thanks
Answer : What is the VBA to do this in Access?
place this codes below your shell line
if dir(FilePath)<>"" then
msgbox "File was created"
else
end if
Random Solutions
Cannot rename reports in Access 2007 runtime - bug?
Creating a service calender Exchange 2007 Outlook 2003/2007
Redirect to an PHP script from ASP.NET?
creating a complicated report in access
BOOT.INI for Win98 on partition 2
Disabling Tintsetp.exe, ImScInst.exe, IMJPMIG.exe
Bring back deleted mail
iPhone 3G and SBS 2003/Exchange Activesync
How do I restore a .cmp file to a Top Level Site?
Unable to open <a rel="nofollow" href="http://" target="_blank">http://</a>.... Cannot download the information you requested