Thanks for your reply Bart,
In my case i don't see a message that it is not going to save the record.
eg. the user has been in an order and has made a change but not saved it. I have a script which when runs will open a different order, so when it runs it closes the current transaction without saving and then opens the new order. I would like the script to identify that the current record has not been saved and then give the user an option to either save or cancel before going to the new order. So my question is, is there a way to know that the current transaction hasn't been saved, if so I will so I will then display a msgbox to the user to get there required action.
hope that makes sense.
Steve.