> Hello, All:
>
> I'm designing a very simple database that will import data (all text
> files, all different names, each text file using the same column
> headings, one common directory) basically for reference purposes. I
> found a posting (titled "import multiple text files into Access
> (different file names)" from February 2005...see link at the end) using
> macros and a hidden form. That looks like it would work to import all
> files from a directory regardless of title. What would one do if they
> wanted to tell the database which file to import? In the case that I'm
> referring to above, a text box on a hidden form holds the information
> needed by the macro (*.txt) to import the right file. Would it then
> make sense to adjust the macro to allow for user input (e.g. the file
> name to import), and use a control button to start the macro?
>
> The text file that will be imported is a generated file from a hardware
> programming utility. The title will reflect the order number
> associated with the particular piece of hardware. Usually, it will be
> a 5 or 6 digit number, although sometimes it will have a letter or an
> underscore (I'm not sure if this makes any difference in designing the
> VB code or macro). Each file size will be different, and each file
> will contain one or more lines of information, but each line will have
> data that reflects common column headings. The values are separated by
> commas. The end user is assumed to have very little if any database
> experience, and would most likely have trouble using Access's import
> wizard.
>
> Any help is greatly appreciated.
>
> -Achez
>
>
http://groups.google.ca/group/microsoft.public.access.externaldata/browse_thread/thread/9c67cbbc437c6be4/aa879d1dff2b2b1a?lnk=st&q=macro+to+import+text+file+into+access&rnum=3&hl=en#aa879d1dff2b2b1a>
>