I loop the recordset and add "," between the numbers.
This = ",123,456,789" and then i do this to remove the first ","Code:Dim sn As String rsTemp.MoveFirst While Not rsTemp.EOF sn = sn + "," + Format$(rsTemp("SampleNumber")) rsTemp.MoveNext Wend
This = "123,456,789".Code:Dim snF As String snF = "'" & Mid$(sn, 2, Len(sn)) & "'"
Is there a better way to add the "," between the numbers in the loop so i dont have to use the Mid$? or what i have is ok?




Reply With Quote