Hi @rotorbit69,
Thanks for the post.
Yes the code appears to be correct and the set value should override the one entered on the post edit page.
Please debug your code to check if the new value has been set through:
<?php
$field_value = get_field('myACFfieldname');
echo '<pre>';
var_dump( $field_value );
echo '</pre>';
?>