I made a program that prints a "report form"

this is the code im using

VB Code:
  1. On Error GoTo prolem
  2.   With CommonDialog1
  3.   .ShowPrinter
  4.   .CancelError = True
  5.   NumCopies = .Copies
  6. End With
  7.   For i = 1 To NumCopies
  8.     Me.PrintForm    ' Prints the form using the print dialog info
  9.   Next i
  10.   Exit Sub
  11. prolem:
  12. Exit Sub

When the user clicks cancel it still prints !!!!
how can i ammend this

Thanks all
Sam Lad