SQL Server 6.5 cascade update problem

Does anybody know why

update table1 set code1=7 where code1=3

fails when I have a foreign key on field key1?