Created
January 20, 2016 14:17
-
-
Save bnjcbsn/028bc7f4ac5dd1ab5b97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Access VBA | |
' loops through a single column recordset and builds a csv text string | |
' that can be inserted into a query | |
' modified from unknown internet sources | |
' my NY resolution is to capture sources when culling ideas from internet | |
If rs.RecordCount <> 0 Then | |
rs.MoveLast | |
rs.MoveFirst | |
Do Until rs.EOF | |
ap = rs.AbsolutePosition | |
rc = rs.RecordCount - 1 | |
If ap < rc Then | |
cslist = cslist + CStr(rs!Value) & "," | |
Else | |
cslist = cslist + CStr(rs!Value) | |
End If | |
rs.MoveNext | |
Loop | |
End If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment