External Database Usage

S

Sandeep

hello sir,

I am using

Insert into <tablename1> in " location " select * from
<tablename2>

but the problem is how to specify the password if the
tablename1 at location specified in IN clause has password
on it

Plz send me some example
 
T

Tim Ferguson

Insert into <tablename1> in " location " select * from
<tablename2>

but the problem is how to specify the password if the
tablename1 at location specified in IN clause has password
on it

You can use as much of a connection string as you want in the square-
bracket format; check help files for the IN clause:

.... IN "" [Database=h:\mydata\myother.mdb; pwd=shoes; uid=Eric;]

This is off the top of my head, and you may need to experiment a bit. There
is more information in vba help: look up the Connect property of the
TableDef object.

Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top