G
Guest
I need some help importing data from text files into access. I've got a text
file that is fixed-width text but the text file has multiple "pages" (though
no formal page breaks) of text only distinguished in the text file by a few
lines of header text and a few lines of footer text. I can write VBA to
import the text and arbitrarily set the fixed width to match up with the text
files I want to import though I imagine this isn't the most elegant way to do
this. I can't figure out how to have the system ignore the rows that contain
headers or footers. Anyone have a suggestion of how to do this? I'd also
love suggestions about how to import the rest of the data more elegantly.
Here's how the headers and footers look:
REPORT
Last Name First Name # Call Date Extension
Seat #
_____________________________________________________________________
_____________________________________________________________________
{district/location} Div: {division} File: {filenumber}
Total Count: {number of records} {Date Time} Page:
{pagenumber}
file that is fixed-width text but the text file has multiple "pages" (though
no formal page breaks) of text only distinguished in the text file by a few
lines of header text and a few lines of footer text. I can write VBA to
import the text and arbitrarily set the fixed width to match up with the text
files I want to import though I imagine this isn't the most elegant way to do
this. I can't figure out how to have the system ignore the rows that contain
headers or footers. Anyone have a suggestion of how to do this? I'd also
love suggestions about how to import the rest of the data more elegantly.
Here's how the headers and footers look:
REPORT
Last Name First Name # Call Date Extension
Seat #
_____________________________________________________________________
_____________________________________________________________________
{district/location} Div: {division} File: {filenumber}
Total Count: {number of records} {Date Time} Page:
{pagenumber}