Re: _com_error information




"Neil B" <NeilB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1177CF2B-963A-463D-AB76-C6173D1AF7F6@xxxxxxxxxxxxxxxx
When I get an _com_error condition for the AddNew() method the errorMsg
returns "Bad Ptr", so I don't get any information on the error. Is there
something I'm doing wrong? This code works in other situations okay. Is
there
something unique about AddNew()?

Thanks, Neil
<snipped>

To adequately retrieve ADO errors you have to enumerate them from the Errors
collection.
http://msdn2.microsoft.com/en-us/library/bb212594.aspx
http://msdn2.microsoft.com/en-us/library/bb148492.aspx

AddNew() creates an Insert statement from the initial SQL so there is no way
to know what may be happening in this case, based on code presented.

I have to echo Mr. Howe's comments. (And you have been told this before)
Set aside this weekend to learn C++. <g>

-ralph


.