Function Jointxt(ByVal aa As String, ByVal dd As String, ByVal cc As Variant) As String
Dim f1 As String
f1 = ""
Set rs = CurrentDb.OpenRecordset("select " & aa & " from " & dd & " where " & cc)
Do While Not rs.EOF
f1 = f1 & rs(0) & ", "
rs.MoveNext
Loop
Jointxt = Left(f1, Len(f1) - 2)
End Function