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
How can I enable a template item accoding to query result ?
Delete from Access form certain records in a table that relate to another table's field
Backspace not working
Saved docx file from an outlook express attachment, now file is missing
How to use the UserGroup.GetUserLoginFrom<wbr />Email web service in Infopath
How to secure server 2008 network with wireless access point
Repair installation when unable to start Vista
File System Error (-1073741701) When attempting to run or attempting to load Vista SP1
blue Screen on windows 2003 sp1
How to Pass (text) criteria to a query using a Multi List Box