E
Ed
How do I add a password to this SQL query?
SELECT Column1
FROM Table1 In 'C:\A.mdb' ;
SELECT Column1
FROM Table1 In 'C:\A.mdb' ;
Ed said:Sorry, I was too brief on what I was trying to do.
The table has a password and I went to sent the password with the query!
ed
Ed said:I have two databases. The one I am in and the one that has Table1.
The database that the Table1 is in has a password. When I run the query
from the second database, it gives me an error message "Not a valid
password". I know the password, I just do not know how to add the password
to the SQL.
Gary Walter said:SELECT *
FROM Table1
IN '' [MS Access;PWD=dirt;DATABASE=C:\DR_be.mdb];
That's 2 single quotes after IN
Gary Walter
Ed said:Did not work. I put in:
SELECT *
FROM Table1 IN 'c:\DR_be.mdb;PWD=dirt';
I put in double quotes and Access changed it to single quotes. I get a
error
message that says 'Could not find file 'c:\DR_be.mdb;PWD=dirt'.