Is there any way I could close all my adodc in one
command line? if yes I would really appreciate that
because I have like 35 adodc to close in my application and I don't want to close them one by one.
I hope it's possible...
Printable View
Is there any way I could close all my adodc in one
command line? if yes I would really appreciate that
because I have like 35 adodc to close in my application and I don't want to close them one by one.
I hope it's possible...
this should do something like what you're after
can't think how to do it in one line though....Code:Dim MyObj As Adodc
For Each MyObj In Controls
'insert in here whatever you want to do to the ADODC
Next
I didn't think it was possible to "close" an ADODC; they close themselves when the form they're on is unloaded. Let me know if I'm mistaken.
I wouldn't know myself. I've not used an ADODC before, but that method is the one I always use for making the same change to many objects