in reply to Re: trapping database errors
in thread trapping database errors

no this does work. It seems always $answer is undefined