I am trying to export data from one password protected access database to another using an append query. I don't want to link the tables because the export is only for archive purposes. I can get the query to work fine when there is no password on teh external database, but I can't seem to find the correct syntax to make it work when the password is applied. I am using the following SQL statement in VB.
Code:
[\code]
DoCmd.RunSQL ("INSERT INTO Adjustments IN 'c:\Accounting\AcntArchive.mdb'[;pwd=password] " & _
" SELECT Adjustments.* FROM Adjustments" & _
" WHERE (((Adjustments.[Job #])=[Forms]![Select Job #]![Job #]));")
[code][\code]
When run, I get a "No database specified in connection string or IN clause". Does anyone know the correct syntax for this?
All help is greatly appreciated!