Import Records from and external database
From: DIOS (sindizzy_at_softhome.net)
Date: 02/04/04
- Next message: Randal: "Re: Earliest Date"
- Previous message: Dennis Schmidt: "RE: Like Query Help"
- Next in thread: John Spencer (MVP): "Re: Import Records from and external database"
- Reply: John Spencer (MVP): "Re: Import Records from and external database"
- Reply: prabha: "RE: Import Records from and external database"
- Messages sorted by: [ date ] [ thread ]
Date: 4 Feb 2004 08:17:43 -0800
Im working on a database and im trying to import data from a external
database though VBA/DAO. ive tried to use ISERT INTO IN but cant seem
to get the syntax down right. Say Im working in db1 and tbl1 and have
some code to execute a SQL statement. I want to connect to an external
database db2 and tbl2. Now the fields are similar so i want to be able
to map what field gets what value.
I tried
sSQL = "INSERT INTO tbl1 " & _
"SELECT * " & _
"FROM tbl2 IN db2;"
where db2 is the full path to the external database. I cant seem to
get it to work and to map my fields. Any help is appreciated.
AGP
- Next message: Randal: "Re: Earliest Date"
- Previous message: Dennis Schmidt: "RE: Like Query Help"
- Next in thread: John Spencer (MVP): "Re: Import Records from and external database"
- Reply: John Spencer (MVP): "Re: Import Records from and external database"
- Reply: prabha: "RE: Import Records from and external database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|