3
節省我試圖保存使用FileDialog的RTF文件,並想使用WHERE子句來篩選時如何過濾報表對象。這是我有什麼:通過的FileDialog在MS Access
Set dlgSave = FileDialog(msoFileDialogSaveAs)
With dlgSave
.Title = "Provide the place to save this file"
.ButtonName = "Save As..."
.InitialFileName = Me.cmbPickAReportToPrint.Value & "-" & Format(Date, "mmddyy") & ".rtf"
.InitialView = msoFileDialogViewDetails
If .Show Then
DoCmd.OutputTo acOutputReport, Me.cmbPickAReportToPrint.Value, acFormatRTF, .SelectedItems(1)
End If
End With
任何想法如何我可以添加where子句,而無需另外更改報告?