Redirect to an IRL according to the System Error/Warning/Message return code.
Obj.dbErrorRedirect="ErrorNumber=Redirect_URL|...."
Run the code w/o the error redirect and the error message will indicate the error 612:2. You can then trap the error (612) and make a re-driect.
Dim z2 As New Tornado.z
With z2
.dbQP = "U=2||D=NWind|Gdf=01,1,2,3|Th=Ti=Employee Table"
.dbSQL = "Select * From employees where Employeeid = 99"
.dbErrorRedirect = "612=http://www.aspdb.com"
.ASPdbNET()
End With
Example to perform error trap inside the aspx code - Dim Mydb As New Tornado.z Mydb.dbQP = "U=2|D=Nwindx| Q=Orders| TH=Title=Error" 'Nwindx.mdb does not exist On Error GoTo Handler Mydb.ASPdbNET() Handler: If Err.Number <> 0 Then Response.Write(Err.Number & "-" & Err.Description)
z Class | Tornado Namespace | dbLocalText