You'll probably be wanting to use a recordset that determines the textbox ro label value when the report is formatted, so you have something like:
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim rst as Recordset
Dim strValues as String
set rst = CurrentDB.OpenRecordSet( _
"SELECT Territory FROM tblTerritoryDetail WHERE " _
& "TerritoryGp = '" & Me.txtTerritoryGroup & "'")
While Not rst.EOF
strValues = strValues & ", " & rst("Territory")
rst.MoveNext
Wend
'Strip off the first ", "
strValues = right(strValues, len(strValues)-2)
Me.lblYourLabel.Caption = strValues
End Sub
Of course, you'll most likely have to change a fair bit of the code, but it should point you in the right direction.
This is NOT a definitive answer, just something off the top of my head. (Thought I should put that disclaimer in lest I be rebuked by Jürgen
again)
:)
Steven
I am a loud man with a very large hat. This means I am in charge