Printing Help!

I got to the place were I can print all the record that I have found in my lay outs on the data base. But, the lay out with no found record still prints blank paper. This is the schrip I am using. What is wrong with it.
Set Error Capure(on)
If ["status (CurrentErro)<>0"]
End If
Set Error Capure(on)
If ["status (CurrentErro)<>0"]
End If