Rudolf
January 16th, 2002, 10:00 AM
Hi!
How can I get the error messages from the errors that occur when the opening of a recordset doesn't work. I'm using ADO and JScript (VBScript isn't an option because of other reasons).
The critical orders are in a try clause but I didn't find a possiblity get the error messages until now.
The err object I know from VBScript didn't work (I don't really know how to initialize it, perhaps that's the problem).
When I try the error object from ADO, it seems that the descriptions isn't written into that object (is that the object err uses?).
For errors in the connection object I use the errors-collection of that object (more or less) successfully, but I cannot use it for the opening of the recordset (although there's a connection object involved, but apparently the error is not written into the error object from the connection object).
Does anybody know how I can do this?
TIA
Rudolf
How can I get the error messages from the errors that occur when the opening of a recordset doesn't work. I'm using ADO and JScript (VBScript isn't an option because of other reasons).
The critical orders are in a try clause but I didn't find a possiblity get the error messages until now.
The err object I know from VBScript didn't work (I don't really know how to initialize it, perhaps that's the problem).
When I try the error object from ADO, it seems that the descriptions isn't written into that object (is that the object err uses?).
For errors in the connection object I use the errors-collection of that object (more or less) successfully, but I cannot use it for the opening of the recordset (although there's a connection object involved, but apparently the error is not written into the error object from the connection object).
Does anybody know how I can do this?
TIA
Rudolf