After quite a few searches, I finally found where to set the max allowed cursors and max allowed statements in Sybase.
That gets me arround the error message, but now my problem is understanding why I had more than 50 prepared statements in the first place.
I use only one ADO db connection and close each recordset after uses. I rarely have more than one recordset open at any time and never more than three.