Hi,
I have been given a large CSV file extract where the column headers go upto Range DX.
I have tried the following but it seems to truncate the headers which is causing it to think there is a duplication due to some headers being very similar.
These are example headers
Exit Survey - Survey 2 - Based on your experience today, how likely are you to [shop/bank/xxx] with us again?
Exit Survey - Survey 2 - Based on your experience today, how likely are you to refer us to friends or family?
It truncates it down to
Exit Survey - Survey 2 - Based on your experience today, how lik
It truncates them to 64 chars long.
using access 2010
Any ideas how I get round this
NOTE : Found out I can get the file in JSON format, not worked with that before
I have been given a large CSV file extract where the column headers go upto Range DX.
I have tried the following but it seems to truncate the headers which is causing it to think there is a duplication due to some headers being very similar.
These are example headers
Exit Survey - Survey 2 - Based on your experience today, how likely are you to [shop/bank/xxx] with us again?
Exit Survey - Survey 2 - Based on your experience today, how likely are you to refer us to friends or family?
It truncates it down to
Exit Survey - Survey 2 - Based on your experience today, how lik
It truncates them to 64 chars long.
Code:
Dim db As DAO.Database
' Re-link the CSV Table
Set db = CurrentDb
On Error Resume Next: db.TableDefs.Delete "tbl_WebHistory_Raw_1": On Error GoTo 0
db.TableDefs.Refresh
DoCmd.TransferText TransferType:=acLinkDelim, TableName:="tbl_WebHistory_Raw_1", FileName:=mypath & "test.csv", HasFieldNames:=True
db.TableDefs.Refresh
db.Execute "INSERT INTO tbl_WebHistory_Raw SELECT * FROM tbl_WebHistory_Raw_1"
db.Close
Set db = Nothing
using access 2010
Any ideas how I get round this
NOTE : Found out I can get the file in JSON format, not worked with that before
Last edited: