Hello,
I have a custom ribbon with below Code attached to a button. I also have a Navigation Form with multiple tabs. When I click the button it activates the FileSaveAsDialog for the current file on the tab and the filename is correct. After clicking "Save" it does not save just the current record it saves all the records into one file.
How to save only the current file? Any help would be appreciated.
Code:
Application.FileDialog(msoFileDialogSaveAs).InitialFileName = "UN" & Format(UNNO, "0000") & ".pdf"
intChoice = Application.FileDialog(msoFileDialogSaveAs).Show
If intChoice <> 0 Then
DoCmd.OutputTo acOutputReport, "rptUNLookUp", acFormatPDF, "UN" & Format(UNNO, "0000") & ".pdf"
End If