no arguments here. smig, access should not omit quotation marks when importing.However I'm unclear how you're doing the import as I can import text files including quotes without any issues.
Its certainly possible to edit a text file prior to importing it into Access.
You can use either of the methods in the SO links provided by vba_php though I'd personally replace a quote = Chr(34) with the rarely used pipe symbol = Chr(124) rather than a comma Chr (44). That makes it easy to reverse the changes after import.
However I'm unclear how you're doing the import as I can import text files including quotes without any issues. The screenshot below shows a sample text file together with two different versions of the imported text - imported to a single field OR split into separate words.
Both were done using the import text tool without any replacements to the original text
Thanks,no arguments here. smig, access should not omit quotation marks when importing.
Thanks,
I had some ImportErrors
I noticed they all had Quote in them.
I use the DoCmd.TransferText acImportDelim to import the file
using the acImportFixed require the Specification file.
I import all data into a single field.
DoCmd.RunSavedImportExport "SavedTaskNameHere"
Hi. Just a guess but maybe you're dealing with a smart quote?Thank you all for your comments
I did several test by putting a test line into my TXT file and there is no doubt the quote cause this line to fail, when using DoCmd.TransferText method.
I'll try using OPEN FOR INPUT to read the file.
Hmm... I'd be interested to see what your text file looks like.
Can you upload it here for testing?
Also please check my comment in post #8 before you spend time creating a procedure using OpenFile to do this.
What is it ?Hi. Just a guess but maybe you're dealing with a smart quote?
Basically, instead of this ("), it's this (”). In other words, slanted quotes.What is it ?
I'm not using any Import/Export wizard
848
849
946
1065
1066
1067
1147
1151
1205
1314
1329
1335
1361
1364
1381
1382
1389
1408
1412
1438
1439
1457
1462
1470
1471
1477
1522
1524
1527
1531
1536
1571
1629
1631
1666
1677
1678
1681
1682
1696
1699
1712
1724
1739
1740
6294
7191
7387
7472
7487
8129
8214
8747
8817
9284
9431
9450
9618
9636
9653
10015
10506