Hi
I'm trying to import data from a CSV file into an access database and then sort it by distance and grouped by id.
so my table within the database should ideally look something like,...
ID Distance
1 3
1 4.5
1 5
1 7
I tried using a SQL select statement, but i guess I am getting it wrong.
'create table and import data from csv file
Dim strCSV As String
strCSV _
= "Select id, distance, weight" _
& " INTO TABLENAME IN'" & FileMDB & "' " _
& " FROM " & nctablefileCSV & " SORT distance GROUP BY id"
conCSV.Execute(strCSV)
conCSV.Close()
Any suggestions will be most appreciated!
Thank you,
Chet
I'm trying to import data from a CSV file into an access database and then sort it by distance and grouped by id.
so my table within the database should ideally look something like,...
ID Distance
1 3
1 4.5
1 5
1 7
I tried using a SQL select statement, but i guess I am getting it wrong.
'create table and import data from csv file
Dim strCSV As String
strCSV _
= "Select id, distance, weight" _
& " INTO TABLENAME IN'" & FileMDB & "' " _
& " FROM " & nctablefileCSV & " SORT distance GROUP BY id"
conCSV.Execute(strCSV)
conCSV.Close()
Any suggestions will be most appreciated!
Thank you,
Chet