I want to save a access reports as a pdf with a specific name (get this from the form) but that the user still can choose the location where to save it.
I can save the report with the standard name of the report, i can save the report with a specific name of the form but then the word "Filename" isn't in the code anymore and the there is no pop up to were to save From the moment i try to combine a string with the word "filename" i think access does something but i can't read what because it goes away to fast and don't find my file anywhere.
The last coed i try was this and i think i tried every combination but i can't find it Please help :
Private Sub KnPdoductieopdrachtPDF_Click()
Dim strReportName As String
Dim strPathName As String
Dim Locname As String
strReportName = "Productieopdracht" & [Taaknummer] & ".pdf"
strPathName = Filename
Locname = strPathName & strReportName
DoCmd.OutputTo acOutputReport, "Productieopdracht R", acFormatPDF, Locname, False, "", , acExportQualityPrint
End Sub