I would like to automatically save a file to a particular directory. I am not sure how exactly to code the macro but it should look something like what I have typed below..
'
The file directory will be taken from the current open record in the access database
The file name will be (Today date) letter.doc
i.e. ; 2003-12-24 letter.doc
' save Macro
'
FileDirectory ""
Access database path= C:\database\CS1.mdb
Filepath = Forms!Main![path]
ActiveDocument.SaveAs FileName:=" (todaysDate, "yyyy-mm-dd"
FileFormat:=wdFormatDocument, _ LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _ :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
End Sub
Any help would be appreciated. Thanks.