Append query failure if password used

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I’m unable to get an append query to run properly when the target database
(in this case PTData1.mdb) is passworded. It runs fine with the code below if
there is no password.

SQLcode

INSERT INTO xxyyy ( ID, Catz, Dogz ) IN 'C:\PharmTouch\PTData1.mdb'
SELECT xxixx.ID, xxixx.Catz, xxixx.Dogz
FROM xxixx;

If there is a password (frog) on the target, then the system returns “not a
valid passwordâ€

SQLcode

INSERT INTO [;PWD=frog].xxyyy ( ID, Catz, Dogz ) IN
'C:\PharmTouch\PTData1.mdb'[;PWD=frog]
SELECT xxixx.ID, xxixx.Catz, xxixx.Dogz
FROM xxixx;


Any ideas about what I’m doing wrong?


Thanks

PharmTouch
 
You definitely do not need to put the password twice. See whether this
works:

INSERT INTO xxyyy ( ID, Catz, Dogz ) IN
"C:\PharmTouch\PTData1.mdb" ";PWD=frog"
SELECT xxixx.ID, xxixx.Catz, xxixx.Dogz
FROM xxixx;

If it doesn't, try creating a linked table so that you don't need the IN
clause.
 

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