We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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.