Using Print button to print & update DB! URGENT!!

Please help

I have this multiple form with Save button (Extract) and Print Button.

I want to have ONE BUTTON that will print and update data with print = ‘Y’ in my DB.
(see attachment)

PLEASE HELP With the script in PHP or Javascrip that can work in scriptcase v7.

Anyone???

scrn.jpg

try to create new button add the macros to it (try different sequence) and then remove the original button of sc from toolbar… not sure if it work though