A
accessmanager
Guest
I have been using DoCmd.TranferText for a while now.
Recently I have had to amend many records and links owing to loss of data during transfer.
I have replicated this problem both in Access 97 and 2000
Create a database with a single table (Test) with two columns of type text (Test1,Test2)
Create a form (Form1) with a single command button with an on click event as follows.
DoCmd.RunSQL "Delete Test.* FROM Test;"
DoCmd.TransferText acImportDelim, , "Test", "C:\Trial.csv", -1
Create the text file Trial.csv as follows.
Test 1, Test 2
A6123, KKJU
A6124, KKMT
A6125, KKSV
On running the above, data will transfer to the table Test with no problem.
However, if you change the data in the first column to the following format Knnnn then strange things start to occur. You can try all sorts of combinations of nnKnn and still have problems.
Beware and if anyone knows of any other nasties please post them.
I really do not think I should be double checking all my data has transfered correctly each time.
Recently I have had to amend many records and links owing to loss of data during transfer.
I have replicated this problem both in Access 97 and 2000
Create a database with a single table (Test) with two columns of type text (Test1,Test2)
Create a form (Form1) with a single command button with an on click event as follows.
DoCmd.RunSQL "Delete Test.* FROM Test;"
DoCmd.TransferText acImportDelim, , "Test", "C:\Trial.csv", -1
Create the text file Trial.csv as follows.
Test 1, Test 2
A6123, KKJU
A6124, KKMT
A6125, KKSV
On running the above, data will transfer to the table Test with no problem.
However, if you change the data in the first column to the following format Knnnn then strange things start to occur. You can try all sorts of combinations of nnKnn and still have problems.
Beware and if anyone knows of any other nasties please post them.
I really do not think I should be double checking all my data has transfered correctly each time.