PeopleSoft Adoption Made Smooth & Simple!
On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool. Claim Your Free WalkMe Account Now
returns the following in Immediate Window
Sub t() On Error Resume Next Debug.Print "1)", CurrentDb.OpenRecordset("select id from table1")(0) If Err <> 0 Then Debug.Print Err, Err.Description Debug.Print "2)", CurrentDb.OpenRecordset("select id, x,y from table1")(0) If Err <> 0 Then Debug.Print Err, Err.Description End Sub
Q): Is there a way to extend somehow the output to, say,
1) 5 3061 Too few parameters. Expected 2.
Although it is irrelevant to the question I illustrate it with a "live" example.
1) 5 3061 Too few parameters. Expected 2 ([x],[y])
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.