G
Guest
I have a delimited text file with survey data from multiple courses. I'd like
to set up a macro or create code to import the data easily. I know i can
create a specification file, but the fields in the data file change from time
to time (old fields always remain, but occassionally new fields are added to
the file). There are also fields in the file that I don't want to import.
I have a separate delimited text file that lists the fields in the data file
and what course they belong to. If possible, i'd like to use that as the
basis for what fields in the data file I import (e.g., the separate file
indicates that fields A1-A10 and fields A36-A50 come from course A - which i
want to import, but fields A11-A35 come from course B - which i don't want to
import).
I imagine it would take code to set something like this up, but i don't know
how to do it. Since the number of fields in the data file can change over
time, I don't think i can use a specification file. I haven't worked with
schema.ini files before. Would that be the right way to go here? Is it
possible to create a schema.ini file on the fly and then import the data
file?
Thanks,
rachel
to set up a macro or create code to import the data easily. I know i can
create a specification file, but the fields in the data file change from time
to time (old fields always remain, but occassionally new fields are added to
the file). There are also fields in the file that I don't want to import.
I have a separate delimited text file that lists the fields in the data file
and what course they belong to. If possible, i'd like to use that as the
basis for what fields in the data file I import (e.g., the separate file
indicates that fields A1-A10 and fields A36-A50 come from course A - which i
want to import, but fields A11-A35 come from course B - which i don't want to
import).
I imagine it would take code to set something like this up, but i don't know
how to do it. Since the number of fields in the data file can change over
time, I don't think i can use a specification file. I haven't worked with
schema.ini files before. Would that be the right way to go here? Is it
possible to create a schema.ini file on the fly and then import the data
file?
Thanks,
rachel