PiedPiper70
Registered User.
- Local time
- Today, 20:57
- Joined
- Oct 21, 2012
- Messages
- 115
Here is a snippet of code I'm going to use for archiving old data
strSQL = "INSERT INTO tblMatters " & -
"IN ""C:\Archive\DataArchive.mdb"" " & -
"SELECT * FROM tblMatters WHERE [rec_date] < #1 January 2009#;"
The code appends certain records from a local table into an identical table in an external database. The probem I have is that the external db requires a password and I just can't get the syntax right.
[Original code courtesy of Allen Browne]
Any help gratefully received
Thanks
Dave
strSQL = "INSERT INTO tblMatters " & -
"IN ""C:\Archive\DataArchive.mdb"" " & -
"SELECT * FROM tblMatters WHERE [rec_date] < #1 January 2009#;"
The code appends certain records from a local table into an identical table in an external database. The probem I have is that the external db requires a password and I just can't get the syntax right.
[Original code courtesy of Allen Browne]
Any help gratefully received
Thanks
Dave