Use try catch,
SQLString = "select * table";
ocrs = CreateObject("ADODB.Recordset");
try {
ocrs.open(SQLString, "Provider=msdaora; Data Source=Source; User ID=UserID; Password=Password;");
}
catch(int nErr)
{
// err handling
}
// continue with other codes