How do I specify the password in this query

  • Thread starter Thread starter Phil Hunt
  • Start date Start date
P

Phil Hunt

I spoke too soon. The query created by the wizard does not work. It still
block me.
Need help.

thanks

Phil Hunt said:
I got it using the wizard.
DELETE FROM [myTable] In 'C:\Protected.MDB' [;PWD=xxxx]

Phil Hunt said:
Hi,
I am running a query from a MDB to delete records from a table on another
location.
The other table is password protected so it kicks out. Is there a way to
specify the password in this systax ?

DELETE FROM [myTable] In 'C:\Protected.MDB'
 
In
Phil Hunt said:
I spoke too soon. The query created by the wizard does not work. It
still block me.
Need help.

You should be able to use either of these syntaxes:

DELETE FROM [myTable] IN "" "MS
Access;Database=C:\Protected.MDB;pwd=xxxx";

DELETE FROM [MS Access;Database=C:\Protected.MDB;pwd=xxxx].[myTable];
 
Dirk,
I don't know how you found that out, but it works.
I am actually doing some update and insert this way. See if I can figure it
out or I'll be back.
Thanks


Dirk Goldgar said:
In
Phil Hunt said:
I spoke too soon. The query created by the wizard does not work. It
still block me.
Need help.

You should be able to use either of these syntaxes:

DELETE FROM [myTable] IN "" "MS
Access;Database=C:\Protected.MDB;pwd=xxxx";

DELETE FROM [MS Access;Database=C:\Protected.MDB;pwd=xxxx].[myTable];


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
Please fix your date/time. This post shows to be posted five hours from
now, but it was actually posted yesterday.

Thanks!


..
 
Hi,
I am running a query from a MDB to delete records from a table on another
location.
The other table is password protected so it kicks out. Is there a way to
specify the password in this systax ?

DELETE FROM [myTable] In 'C:\Protected.MDB'
 

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