تفضل هذه المشاركة من طرفي
Dim fldrname, fldrpath, MyFile As String
Set fso = CreateObject("scripting.filesystemobject")
fldrpath = CurrentProject.Path & "\" & "Files"
If Not fso.FolderExists(fldrpath) Then
fso.createfolder (fldrpath)
End If
MyFile = CurrentProject.Path & "\Files\" & Me.m_name & ".pdf"
DoCmd.OutputTo acOutputReport, "اسم التقرير", "PDFFormat(*.pdf)", MyFile, False, "", , acExportQualityPrint