Hi
i am trying to import a number of csv files using the following code:
This is a line from one of the csv files:
S0000001,PROPERTY ,DUPLICATE ,N,N,N
When the files are imported into tables instead of the userid (which is S0000001) showing as it is it is changed to £1.00!
I have tried to mess about with the code to force it to accept the data as it is with no luck.
Does anyone have an idea what I can do to stop access changing the data?
Thanks
Tim
i am trying to import a number of csv files using the following code:
Code:
StrSql = "SELECT Functions.Order, Functions.Function AS func FROM Functions WHERE (((Functions.Function)<>'SQLdwndone')) " & _
"ORDER BY Functions.Order;"
Set db = CurrentDb
Set rst = db.OpenRecordset(StrSql, dbOpenSnapshot)
SQLfunc = rst("func")
Do Until rst.EOF
SQLfunc = rst("func")
Eval SQLfunc & "()"
DoCmd.TransferText acImportDelim, "", SQLfunc, "C:\temp\Profile_Data\" & SQLfunc & ".csv", True, ""
rst.MoveNext
Loop
This is a line from one of the csv files:
S0000001,PROPERTY ,DUPLICATE ,N,N,N
When the files are imported into tables instead of the userid (which is S0000001) showing as it is it is changed to £1.00!
I have tried to mess about with the code to force it to accept the data as it is with no luck.
Does anyone have an idea what I can do to stop access changing the data?
Thanks
Tim