Hi all,
having a problem getting my .ActiveDocument.SaveAs code to create a new folder as well as saving the document. It works fine if its saved into a folder that already exists but just generates and doesnt save when i try and specify a new folder based on a filed name in the form.
My current working code:
And the code ive just tried:
Any pointers greatly appreciated
Thanks
Luke
having a problem getting my .ActiveDocument.SaveAs code to create a new folder as well as saving the document. It works fine if its saved into a folder that already exists but just generates and doesnt save when i try and specify a new folder based on a filed name in the form.
My current working code:
Code:
.ActiveDocument.SaveAs FileName:="Y:\CPAMS\Quotes\" & "Q" & Format((Forms![frm_quote]![ID]), "#-00000") & " - " & Forms![frm_quote]![ProjTitle] & ".doc"
And the code ive just tried:
Code:
.ActiveDocument.SaveAs FileName:="Y:\CPAMS\Quotes\" & Format((Forms![frm_quote]![ID]), "#-00000") & "\" & "Q" & Format((Forms![frm_quote]![ID]), "#-00000") & " - " & Forms![frm_quote]![ProjTitle] & ".doc"
Any pointers greatly appreciated
Thanks
Luke