"In" Query Question

S

SSweez

I am trying to use the below query to access another Access database
that is password protected. When I run the query as-is it says the
passowrd is invalid. How can I incorporate the password into the
below query?? Thanks in advance.

INSERT INTO Titles (Title, Comments) IN 'C:\Documents and Settings
\db1.mdb'
SELECT Titles.Title, Titles.Comments FROM Titles;
 
6

'69 Camaro

G

Gary Walter

SSweez said:
I am trying to use the below query to access another Access database
that is password protected. When I run the query as-is it says the
passowrd is invalid. How can I incorporate the password into the
below query?? Thanks in advance.

INSERT INTO Titles (Title, Comments) IN 'C:\Documents and Settings
\db1.mdb'
SELECT Titles.Title, Titles.Comments FROM Titles;

In addition to Gunny's sage help...

INSERT INTO Titles (Title, Comments)
IN '' [MS Access;PWD=fred;DATABASE=C:\Documents and Settings\db1.mdb]
SELECT T.Title, T.Comments FROM Titles AS T;

that's 2 single quotes before "["

change "fred" to your actual password
 
Top