INSERT INTO msaccessTable from a SQL Server (1 Viewer)

darbid

Registered User.
Local time
Today, 05:41
Joined
Jun 26, 2008
Messages
1,428
I am making a little vb.net program to do some updates that my .mdb currently does when it starts. Currently I update some local tables of the .mdb from SQL server like this;
Code:
[COLOR=green][B]INSERT INTO "localMsAccessTable" ("localColumn1", "localColumn2", ...)
SELECT "sqlColumn1", "sqlColumn2", ...
FROM "sqlTable"[/B][/COLOR]
The real one looks like this - "qrysptEmployee" is a SQL passthrough query.
Code:
INSERT INTO tbl_Employee ( wID, wshortname, wlastname)
SELECT qrysptEmployee.wID, qrysptEmployee.wshortname, qrysptEmployee.wlastname
FROM qrysptEmployee;
I did not really want to do this row by row. So what object and what methods of this object can INSERT a dataset/datatable into a local access table?
 

Estuardo

Registered User.
Local time
Today, 04:41
Joined
May 27, 2003
Messages
134
G'd Evening Darbid,
In your query i see no WHERE criteria, so it seems like there is a batch insert not a row by row process. am i missing something?
 

Users who are viewing this thread

Top Bottom