Apr 14, 2005 #1 agfon Programmer Mar 25, 2005 38 US I have an error number: -2147467259. Is there a way to obtain the respective error description? Something like... MsgBox Err.Number = -2147467259 Results in... "Not a valid file name." Thanks in advance.
I have an error number: -2147467259. Is there a way to obtain the respective error description? Something like... MsgBox Err.Number = -2147467259 Results in... "Not a valid file name." Thanks in advance.
Apr 14, 2005 Thread starter #2 agfon Programmer Mar 25, 2005 38 US By-the-way, the error number -2147467259 was generated by an ADO object. Therefore, the AccessError(err#) method doesn't work. Upvote 0 Downvote
By-the-way, the error number -2147467259 was generated by an ADO object. Therefore, the AccessError(err#) method doesn't work.
Apr 14, 2005 #3 AnnabelleMarie Programmer Sep 23, 2003 22 US Try this: Err.Raise (-2147467259) Msg = "Error # " & Str(Err.Number) & " was generated by " & Err.Source & Chr(13) & Err.Description MsgBox Msg, , "Error", Err.HelpFile, Err.HelpContext Hope this helps. Upvote 0 Downvote
Try this: Err.Raise (-2147467259) Msg = "Error # " & Str(Err.Number) & " was generated by " & Err.Source & Chr(13) & Err.Description MsgBox Msg, , "Error", Err.HelpFile, Err.HelpContext Hope this helps.
Apr 14, 2005 #4 VBslammer Programmer Aug 12, 2002 1,367 US The ADO Connection object contains an Errors collection, see an example of how to use it here: Extracting Error Information from ADO in VB VBSlammer "You just have to know which screws to turn." - Professor Bob Upvote 0 Downvote
The ADO Connection object contains an Errors collection, see an example of how to use it here: Extracting Error Information from ADO in VB VBSlammer "You just have to know which screws to turn." - Professor Bob