If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
export text file in macro
I am writing an export text file function in macro using Access 97. I use
transfertext and export delimited. However when I run this macro, I got an error message "the file is already existed" and stop processing. How can I delete the file before I run this process in a macro? Thanks. |
#2
|
|||
|
|||
export text file in macro
Hi, you can use Kill statement:
strFile="c:\1.txt" if len(dir(strFile)) 0 then kill strFile end if -- Best regards, ___________ Alex Dybenko (MVP) http://alexdyb.blogspot.com http://www.PointLtd.com " -DwayneWade" wrote in message ... I am writing an export text file function in macro using Access 97. I use transfertext and export delimited. However when I run this macro, I got an error message "the file is already existed" and stop processing. How can I delete the file before I run this process in a macro? Thanks. |
Thread Tools | |
Display Modes | |
|
|