Microsoft
Software
Hardware
Network
Question : How to create an insert query to add records to a database which has a password.
Using VB6, I am trying to create an insert query to add records from Table1 in one database to Table2 in another database which has a password.
Without the Password, the SQL statement is as follows..
INSERT INTO Table2 IN 'C:\ABC.mdb'
SELECT Table1.*
FROM Table1;
With a Password (ABCD) and using MS Office Access 2003 Query Design tool.
The design tool asks for the password and then produces the following SQL string..
INSERT INTO [;PWD=ABCD].Table2 IN 'C:\ABC.mdb'[;PWD=ABCD]
SELECT Table1.*
FROM Table1;
If you 'run' this query however, it reports "Incorrect Password"
Obviously MS Office has a bug! Do any of us mortals have a solution? (It is not possible to resort to 'Linked Tables'.. there are hundreds of sites affected)
P.S. A similar question was asked in 2004 - without an answer.. see..
http://www.experts-exchang
e.com/Micr
osoft/Deve
lopment/
MS
_Access/Q_
20798155.h
tml?sfQuer
yTermInfo=
1+how+inse
rt+
passwor
d
Answer : How to create an insert query to add records to a database which has a password.
No need to Delete the Q - still good info for someone else coming across this issue. Just Accept your last post with zero points to close the Q.
I would call MS Tech Support on this.
mx
Random Solutions
Software Inventory in SCCM 2007
Drag a custom drawn rectangle on an Access form
How can execute an application asynchronously in a trigger/stored procedure?
Mixed 2003/2008 Environment Needs A Domain Rename
How do I import a text file into MS Access which appears to have verticle and hortintals breaks
How do I add missing Active X controls to non-admin accounts in Microsoft Access 2003?
forward an e-mail address in Exchange 2003 to an external address
Need to get the guaranteed HWND on startup of a form
Insert formula to range
How to install SQLServer Standard 2005