Vorias,
It's not as daunting as it first appears...
Basically, you'll use the TransferText function to programmatically bring
the Ascii/Delimited data into Access.
Here's a sample that imports an Ascii delimited file, using a schema.ini
file called MyImportSpecs, to a table in Access called tblUpdateData.
DoCmd.TransferText acImportDelim, "MyImportSpecs", "tblUpdateData",
[UpdateFilePath] & "\" & [UpdateFileName]
Before I run the command, I get the UpdateFilePath & UpdateFileName from
the user via 2 input boxes, and plug those variables into the function.
([UpdateFilePath] & "\" & [UpdateFileName]).
I develop an Import specification file by importing the data via the
wizard, until I get all the specs correct, and the file data imports
correctly... then using Advanced, I save those Import specs in a schema.ini
file (MyImportSpecs)
Go to Help under TransferText, and build your TransferText function...
step by step.
hth
Al Camp
Vorias Peter said:
Hello to all! I was assigned a task which involves importing data from a
delimited text file in already created tables in Access. I haven't worked at
all with vb in Access, so it is kinda difficult for me to make the above
task "automated". Is there a way to do this via SQL in Access? The location
of the text files is pre-defined. I would appreciate your help, cause I am
in big trouble!