"In" Query Question

  • Thread starter Thread starter SSweez
  • Start date Start date
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;
 
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
 

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

Back
Top