LegalizeTheTruth
Programmer
Hey all,
I've got a problem which is driving me crazy now. I'm trying to export a table into a txt with the help of the Schema.ini file. I'm using the following code in this file (which I've placed into the folder where I'm exporting to):
[Mytable.txt]
ColNameHeader=True
Format=TabDelimited
MaxScanRows=0
CharacterSet=OEM
NumberDigits=3
DecimalSymbol=.
TextDelimiter="none"
The vba line for the export is this:
DoCmd.TransferText acExportDelim, , "Mytable", dbPath & "exported\Mytable.txt"
There are 3 columns only, since I wanted to test this thing. These are:
Name (Text)
Age (Long Integer)
SomeNumber (Double)
When I'm runing the export code the result is the following:
Name Age SomeNumber
"Steven",27,3,00
So only the header is changing into the right format and the settings are not effecting the records. I'm also getting ExportErrors (obviously) telling that there are Unparsable Record for all the record lines (now it's just 1, but if I fill it with more, the same thing happens for those records too).
I've searched the net for a solution but could not find any... all the people who are using schema.ini they want to import the text file. Maybe there is a simple solution I'm not aware of, but I hope someone can help with this problem.
Sorry if I left out something, I'm not a big forum user...
Bless
I've got a problem which is driving me crazy now. I'm trying to export a table into a txt with the help of the Schema.ini file. I'm using the following code in this file (which I've placed into the folder where I'm exporting to):
[Mytable.txt]
ColNameHeader=True
Format=TabDelimited
MaxScanRows=0
CharacterSet=OEM
NumberDigits=3
DecimalSymbol=.
TextDelimiter="none"
The vba line for the export is this:
DoCmd.TransferText acExportDelim, , "Mytable", dbPath & "exported\Mytable.txt"
There are 3 columns only, since I wanted to test this thing. These are:
Name (Text)
Age (Long Integer)
SomeNumber (Double)
When I'm runing the export code the result is the following:
Name Age SomeNumber
"Steven",27,3,00
So only the header is changing into the right format and the settings are not effecting the records. I'm also getting ExportErrors (obviously) telling that there are Unparsable Record for all the record lines (now it's just 1, but if I fill it with more, the same thing happens for those records too).
I've searched the net for a solution but could not find any... all the people who are using schema.ini they want to import the text file. Maybe there is a simple solution I'm not aware of, but I hope someone can help with this problem.
Sorry if I left out something, I'm not a big forum user...
Bless