For recordset usage, the activeconnection property can be changed until you open the recordset, at which point it becomes read-only.