This simple data macro is to update SALARY field everytime the DEPT field is filled with the words PURCHASING or MARKETING. (Delete the space in the link to see the image):
ht tp://uploaddeimagens.com.br/imagem/ver/datamacro2.gif
But it is not working, see the image bellow, where PURCHASING...