Christine,
For a start, I'd get the declarations done before
anything else - that's just good programming. Also, I
thought that "if update" only applied (specifically)to a
field, 'tho I'm not sure. Also, you said you wanted an
insert into cube_control table, but your insert...