Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Into query from external database with a password

Status
Not open for further replies.

AvatarZA

Programmer
Sep 26, 2002
42
0
0
ZA
I am trying to do an insert into statement like so "SELECT * INTO tblX FROM tblX IN 'C:\Temp\X.mdb" but database X has a password so I was wondering if anyone knows how to specify a password as I think access only wants a path.
 
If you are running a Make-Table Query to import data from database C:\Temp\X.mdb, protected by password MyPassword, here is the required SQL:
Code:
SELECT * INTO tblX
FROM [;DATABASE=C:\Temp\X.mdb;PWD=MyPassword;].tblX;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top