First import the test file into the database as it's own table. Then delete
the unneeded data. Next run an update query on the original table. Simple?
Not!
Let's tackle the import of data first. Open up the text file and see what it
looks like. Hopefully it's either fixed width or deliminated.
Fixed-width has the same amount of characters for each field. For example a
first name will start at column 1 and end at column 30. Column 31 starts the
last name to column 60. And so on.
Deliminated has a character such as a comma "," or pipe "|" between each
field. If the text file ends in CSV, that's a well known identifier for a
Comma Seperated Value file. Access can easily handle fixed width or delimited
files.
If your text file has a field per line like below, things get very difficult
indeed.
Jerry
Whittle
555-555-5555
Assuming that the file is either fixed width or delimited, open up your
database. Got to File, Get External Data, Import. In the next dialog box go
down to the Files of type dropdown and find the one that matches the
extension on your text file. For TXT you have to scroll down some. Next find
the file and press the import button. At the first Import Wizard dialog box
you need to select fixed width or delimited.
Press Next. If you selected fixed width, you may need to create the breaks
for the data. There are instructions. If delimited you may need to select the
delimiter such as comma or tab. Select Next. (Notice that there is a Back
button if you need to change something.
Put it into a new table. Next. You may be prompted to change the field names
and type of data. Next. Let Access choose a primary key unless you know for
sure that the text file as a piece of data that is unique for each record.
When you are all done, check out the new table. Hopefully you didn't get an
error message. If you like what you see, great! If not you can delete the
table and start the import over again.
That's step 1!
[quoted text clipped - 5 lines]