I spent an unusually long time looking for this on the forums. The only responses I found were vague, incomplete, had errors in the snippet, or just plain didn't work. I wanted to post this to maybe keep someone else from having to navigate through all that. One posting came close, but had some typos. I forget the post or the poster, but this is based on his method and it works:

VB Code:
  1. Public Sub ChangePassword(fileName As String, older As String, newer As String)
  2.    Dim CGPconn As New ADODB.Connection
  3.    Dim strsql As String
  4.    CGPconn.Mode = adModeShareExclusive
  5.    CGPconn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
  6.               fileName & ";Jet OLEDB:Database Password=" & older
  7.    strsql = "Alter Database Password " & newer & " " & older
  8.    CGPconn.Execute (strsql)
  9.    Set CGPconn = Nothing
  10. End Sub

You do, of course, need to set a reference to Microsoft Active X Data Objects