Re: Importing Data-Multiple Sources
From: Ken Snell (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 08/01/04
- Previous message: iam_at_notarealisp.com: "Importing Data-Multiple Sources"
- In reply to: iam_at_notarealisp.com: "Importing Data-Multiple Sources"
- Next in thread: iam_at_notarealisp.com: "Re: Importing Data-Multiple Sources"
- Reply: iam_at_notarealisp.com: "Re: Importing Data-Multiple Sources"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 31 Jul 2004 23:26:37 -0400
Two ways come to mind:
(1) If all the files are in one folder, use Dir function to loop through the
files and, on each loop, import a file to a table and then run an update
query that writes the name of the file to the 7th field based on that field
being "empty" (Null?).
(2) Open each file via VBA file manipulation commands, and write each record
from the file to a recordset that is based on the table, and include a 7th
field in the writing process that contains the file name.
Post back with more info about where/how your files are located, and we'll
go from there.
--
Ken Snell
<MS ACCESS MVP>
<iam@notarealisp.com> wrote in message
news:410c562c.25141171@news.qwest.net...
> I want to import data from multiple sources.
>
> Each source has multiple entries with 6 fields in each entry.
>
> Is there an easy way during import to assign the souce to each entry
> in a 7th field.
>
> field 1 First Name
> field 2 Middle Name
> field 3 Last Name
> field 4 Birth Date
> field 5 Death Date
> field 6 Inscriptions
> field 7 Source
>
> These are all comma delimited text files and I am trying to save
> having to add the 7th field to all of the entries in each file
> manually. 160 + files. As many as 2000 entries per file.
>
> In other words, on each import, the name read as source would be
> "plugged in" to field 7 only on those entries.
>
>
- Previous message: iam_at_notarealisp.com: "Importing Data-Multiple Sources"
- In reply to: iam_at_notarealisp.com: "Importing Data-Multiple Sources"
- Next in thread: iam_at_notarealisp.com: "Re: Importing Data-Multiple Sources"
- Reply: iam_at_notarealisp.com: "Re: Importing Data-Multiple Sources"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|