I think AccessPower missed the point.
If you can live with a csv file to import into your statistical software this code will create the file.
You will need a reference to Microsoft Scripting Runtime.
Code is tested works with my example table.
The csv file will be placed in the same folder as the accdb.
Code:
'---------------------------------------------------------------------------------------
' Method : subGetFields
' Author : Davegri
' Date : 2/16/2017
' Purpose: Create csv file of from 4 col of file Example1. Adjust column names as needed.
'---------------------------------------------------------------------------------------
Public Sub subGetFields()
Dim sPath As String
Dim sPath_and_FileName As String
Dim rst As DAO.Recordset
Dim fso As New FileSystemObject
Dim ts As TextStream
Dim dq As String
sPath = Application.CurrentProject.Path & "\"
sPath_and_FileName = sPath & "FirstFour_" & Replace(Date, "/", "-") & ".csv"
dq = Chr$(34) 'double quote
Dim db As Database
Dim sFieldList As String
Set ts = fso.CreateTextFile(sPath_and_FileName, True)
Set db = CurrentDb
Set rst = db.OpenRecordset("Example1")
rst.MoveLast
rst.MoveFirst
'write header row in csv file
ts.WriteLine (dq & "HeadFirst" & dq & "," & dq & "HeadSecond" & dq & "," & dq & "HeadThird" & dq & "," & dq & "HeadFourth" & dq)
Do While Not rst.EOF
sFieldList = _
dq & rst!FirstField & dq & "," & _
dq & rst!SecondField & dq & "," & _
dq & rst!ThirdField & dq & "," & _
dq & rst!FourthField & dq
ts.WriteLine sFieldList
rst.MoveNext
Loop
ts.close
Set rst = Nothing
Set db = Nothing
Set ts = Nothing
End Sub