S
SirPoonga
Is there a way to have an import spec like access does for importing
files? I have a text file with fixed width columns. I can't import
into access because the file is generated from screen dumps of a
mainframe system. So there are footer and headers in the middle of the
data.
Currently to get the info into Access someone imports into excel,
deletes header lines, exports to tab delimited. I created a function
in access to automate the rest of their process. However since there
isn't a spec that I know of for excel the person that imports the file
has to set field width on import and take out the ones excel
auto-generates. However sometimes that person misses some field
breaks.
If I could import into access I just make an Import Spec which
specifies field widths.
Is there a programatical way of doing this if there is no import spec?
Actually, yeah, there is, can read in file line by line and use Mid$()
for each field. Is there a better way?
files? I have a text file with fixed width columns. I can't import
into access because the file is generated from screen dumps of a
mainframe system. So there are footer and headers in the middle of the
data.
Currently to get the info into Access someone imports into excel,
deletes header lines, exports to tab delimited. I created a function
in access to automate the rest of their process. However since there
isn't a spec that I know of for excel the person that imports the file
has to set field width on import and take out the ones excel
auto-generates. However sometimes that person misses some field
breaks.
If I could import into access I just make an Import Spec which
specifies field widths.
Is there a programatical way of doing this if there is no import spec?
Actually, yeah, there is, can read in file line by line and use Mid$()
for each field. Is there a better way?