この機能を使用できます
Public Function Item(ByVal s As String, ByVal index As Long, _
Optional ByVal delimiter As String = " ") As String
Dim i As Long, pos1 As Long, pos2 As Long
If index < 1 Or index > Len(s) Then
Item = ""
Exit Function
End If
s = s & delimiter
pos2 = 1 - Len(delimiter)
For i = 1 To index
pos1 = pos2 + Len(delimiter)
pos2 = InStr(pos1, s, delimiter, vbBinaryCompare)
If pos2 = 0 Then
Item = ""
Exit Function
End If
Next i
Item = Mid$(s, pos1, pos2 - pos1)
End Function
テスト
Item("asdas df 4354 sdf", 3)
収量
"4354"
選択したステートメントで
SELECT
Item(genus, 1) AS word1,
Item(genus, 2) AS word2,
Item(genus, 3) AS word3
FROM
<tablename>;