Set the allowed options of a selectlist CCK field?
check this resource http://drupal.org/node/726282 you will find a very useful description about CCK fields when form is loaded, and his relation with the function to alter forms, called hook_form_alter(). In few words, you must also use an after_build() function.