G
Guest
I have created some code to create and save a word doc to a specfic location
on my server. Is there an easy way to check to see if the document already
exists before the "AppWord.ActiveDocument.SaveAs" code is run. Have copied
sections of the code which outline the folder loction (myPath) the folder
name (myFolder) and the last section of code which give the word doc its name
and save it to the location. At the moment if the word doc exists it just
overwrites it.
myFolder = Me![txtRef] & "_" & Me![txtCustomerName]
myPath = "\\server\LossFiles\"
AppWord.ActiveDocument.SaveAs myPath & "\" & myFolder & "\" &
Me.txtJobNumber & "_" & "ils"
Thanks Inadvance
Matt
on my server. Is there an easy way to check to see if the document already
exists before the "AppWord.ActiveDocument.SaveAs" code is run. Have copied
sections of the code which outline the folder loction (myPath) the folder
name (myFolder) and the last section of code which give the word doc its name
and save it to the location. At the moment if the word doc exists it just
overwrites it.
myFolder = Me![txtRef] & "_" & Me![txtCustomerName]
myPath = "\\server\LossFiles\"
AppWord.ActiveDocument.SaveAs myPath & "\" & myFolder & "\" &
Me.txtJobNumber & "_" & "ils"
Thanks Inadvance
Matt