Not done in VBA, but at point of initially attaching table to your database,
File, Get External Data, Link Table, then selct table from source and list. In the dialogue box containing list of tables, check the small box in the bottom right hand corner to save the password for the link.