We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Public Sub Concat() Dim curDB As DAO.Database Dim rs As DAO.Recordset Dim strSQL As String Dim nCol As String On Error GoTo Concat_Error Set curDB = CurrentDb() strSQL = "SELECT RptName, DistList" & _ " FROM tblReportDist" & _ " ORDER BY RptName" Set rs = curDB.OpenRecordset(strSQL) rs.MoveFirst Do Until rs.EOF i = rs.Fields("DistList") With rs.Field("RptName") If rs.Count > 0 Then For Each i In rs.Field("RptName") MyString = Chr(34) & .ItemData(i) & Chr(34) & "," & MyString Next i MyString = Left(MyString, Len(MyString) - 1) End If rs.MoveNext Loop
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.