OK, got it.
This turned out to be trickier than I thought, and I am not sure this is the absolute best way, but it does work. (sorry about last week, Vacation.)
Things to do for this to work.
1) Put a text box txtRptUse on the form that will generate this. Hope the requirement of a form does not ruin anything.
2) Put the following as your filter in the report and turn filters on: [DepartmentID] = [Forms]![frmReports]![txtrptUse]
--------------------------------------------
Dim stDocName As String
Dim FullFilePath As String
stDocName = "rptDepts"
Dim rst As New ADODB.Recordset
Dim cnn As New ADODB.Connection
Set cnn = CurrentProject.Connection
rst.Open "tblDepartments", cnn
stDocName = "rptDepts"
Do Until rst.EOF
FullFilePath = "C:TextFiles\" & rst!DepartmentID & ".rtf"
Me.txtrptUse = rst!DepartmentID
DoCmd.OutputTo acOutputReport, stDocName, acFormatRTF, FullFilePath
rst.MoveNext
Loop
--------------------------------------------------------
Hope that helps. I tried just manipulating the filter on the report with Report_rptDept.Filter (that is, the full name) but it complained that this had to be an object.
-Chris