C
Conan Kelly
Hello all,
How do I import a text file using a schema.ini file (either working directly
in Access or in VBA).
The help files say you can use a saved specification file or a schema.ini
file, but it doesn't specifically tell you how to use a schema.ini file or
give examples.
using VBA, I've tried:
DoCmd.TransferText , _
, _
"acct_retained_bal_122006_revised", _
"X:\American
Savings\2006_12_Data\acct_retained_bal_122006_revised.txt"
AND
DoCmd.TransferText , _
"X:\American Savings\2006_12_Data\schema.ini", _
"acct_retained_bal_122006_revised", _
"X:\American
Savings\2006_12_Data\acct_retained_bal_122006_revised.txt"
Using the second version, I received an error message:
http://home.att.net/~ctbarbarin/import_spec_error.jpg
Is the SpecificationName argument (2nd argument) of the TransferText method
only used for Saved Specifications within the DB? If so, how do I use the
schema.ini file?
Thanks for any help anyone can provide,
Conan Kelly
How do I import a text file using a schema.ini file (either working directly
in Access or in VBA).
The help files say you can use a saved specification file or a schema.ini
file, but it doesn't specifically tell you how to use a schema.ini file or
give examples.
using VBA, I've tried:
DoCmd.TransferText , _
, _
"acct_retained_bal_122006_revised", _
"X:\American
Savings\2006_12_Data\acct_retained_bal_122006_revised.txt"
AND
DoCmd.TransferText , _
"X:\American Savings\2006_12_Data\schema.ini", _
"acct_retained_bal_122006_revised", _
"X:\American
Savings\2006_12_Data\acct_retained_bal_122006_revised.txt"
Using the second version, I received an error message:
http://home.att.net/~ctbarbarin/import_spec_error.jpg
Is the SpecificationName argument (2nd argument) of the TransferText method
only used for Saved Specifications within the DB? If so, how do I use the
schema.ini file?
Thanks for any help anyone can provide,
Conan Kelly