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
Microsoft Access 2007 Question
SQL Query - Simple Syntax Issue
can i use right([ClientName] to get the last part of a string in a Microsoft Access query if i don't know how long the last part is?
VB 2010 - Connection to MS Access
Can't change formatting in a form...
Reading XML in to an ADO Recordset
Vista Boot Error
Edit multiple .txt documents via a batch program
Help with excel formula
Outlook 2007 Calendars Updating Shared Calendar only updates Personal Calendar