P
Peter Hill
Hello - (using Access2000)
Is there a way (without using the Import Text Wizard) of
importing a text file into Access so that it comes in as
if I had just pasted it into a datasheet table. ie. with
default field names (Field1, Field2 ... etc) and just text
as the data type for each field.
The only way I can think of doing this is to get the user
to define the file delimiter (generally, this will only be
a comma or a pipe), then using a text file reader to read
the first line of the file and then creating a new
tabledef and appending a new field everytime the delimiter
appears on that first line. They can change the fields
data type later on.
Is there a more direct approach than this such as using
transfertext or something? From memory, it always
required specification name (but I want to keep it generic
so the spec is useless!)
Regards,
Peter Hill
Is there a way (without using the Import Text Wizard) of
importing a text file into Access so that it comes in as
if I had just pasted it into a datasheet table. ie. with
default field names (Field1, Field2 ... etc) and just text
as the data type for each field.
The only way I can think of doing this is to get the user
to define the file delimiter (generally, this will only be
a comma or a pipe), then using a text file reader to read
the first line of the file and then creating a new
tabledef and appending a new field everytime the delimiter
appears on that first line. They can change the fields
data type later on.
Is there a more direct approach than this such as using
transfertext or something? From memory, it always
required specification name (but I want to keep it generic
so the spec is useless!)
Regards,
Peter Hill