Question : Bulk insert into an Access table

Hi,
I know this question is answered periodically, but I'm wondering what the easiest solution to this following problem is.

I have about 700 INSERT statements like the following below that I need to run against a table in MS Access 2000.

This is a one-time import.

What's the easiest way to do this?

Thanks.

Code Snippet:
1:
2:
3:
4:
INSERT INTO ABC_J_VARS__YEARS (FK_VARS,FK_YEARS) VALUES (2,1988);
INSERT INTO ABC_J_VARS__YEARS (FK_VARS,FK_YEARS) VALUES (2,1989);
INSERT INTO ABC_J_VARS__YEARS (FK_VARS,FK_YEARS) VALUES (2,1990);
INSERT INTO ABC_J_VARS__YEARS (FK_VARS,FK_YEARS) VALUES (3,1991);
Open in New Window Select All

Answer : Bulk insert into an Access table

I would say import from a file into a staging table -- Then do a query like below.
1:
2:
3:
INSERT INTO ABC_J_VARS__YEARS (FK_VARS,FK_YEARS)
SELECT FK_VARS,FK_YEARS
FROM MyStaging_Table;
Open in New Window Select All
Random Solutions  
 
programming4us programming4us