Have no idea as to the needed code, but modifying this kind of thing through code always requires either opening a Form in Design View in order to do it, or in cases of application wide changes, closing and then re-opening Access itself.
Having to go through this kind of song and dance usually makes the ends not worth the effort involved.
The Missinglinq
Richmond, Virginia
The Devil's in the Details!