Hi Muthu.
All you need to do is wrap your printing code in something this -
if MessageBox("Do you want to print?", 4+32+256, "Confirm Print") == 6
Printing Code here
EndIF
If you want it to default to Yes then leave the +256 out.
Ian Simcock.
>I have create "print .scx" and I have written code, now I want before the printing the Message Box will appear and ask "DO YOU WANT TO PRINT" YES OR NO. if yes I want print the record, if no means exit from print form.
>
>How to write code?