Dim Y As Variant
Dim strSQL1 As String, strSQL2 As String, strSQL3 As String
Dim strSource1 As String, strDest1 As String, strDelete As String
strSQL1 = "INSERT INTO "
strSQL2 = " SELECT * FROM "
strSQL3 = " WHERE [RecordID] = "
strDest1 = "Destination Table"
strSource1 = "Source table"
strDelete = "Delete [Source Table].* FROM [Source Table] WHERE [Source Table].RecordID = "
For intCurrentRow = 0 To Me!lstSource.ListCount - 1
If Me!lstSource.Selected(intCurrentRow) Then
Y = Me!lstSource.ItemData(intCurrentRow)