Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > ADO: Object was...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4266 of 4320
Post > Topic >>

ADO: Object was open

by Learning Curve <localharbor@[EMAIL PROTECTED] > Jul 10, 2008 at 05:02 PM

Numerous web searches indicate that this is an old prob: I was having
trouble using ADO and getting "object was open" errors.

FWIW, and in case this bug bedevils others in the future, I eventually
found a solution in my own case by setting my ADO's Command->Name
property to a unique value for each sql stmt that I use. Apparently in
some way my ADO needs this in order to function reliably.

Also fwiw, merely setting the Name property then *also* crashed my pgm
- it was really just not my day, I guess - until I set the property by
using a technique of first copying the unique name value to a _bstr_t,
then using an assignment of the form Command-
>Name.Assign(_bstr_t.GetBSTR());

Hope this helps anyone else who trips over the prob. Took me longer
than I care to admit to get this far, and if anyone else ever posted
the above approach, I never did see it.
 




 2 Posts in Topic:
ADO: Object was open
Learning Curve <localh  2008-07-10 17:02:27 
Re: Object was open
"Bob Barrows [MVP]&q  2008-07-10 21:25:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:22:24 CST 2008.