Results 1 to 4 of 4

Thread: Close all Adodc in one command line?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    15

    Question

    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...
    I'm not like them
    but I can pretend

  2. #2
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    this should do something like what you're after

    Code:
    Dim MyObj As Adodc
    
        For Each MyObj In Controls
            'insert in here whatever you want to do to the ADODC
        Next
    can't think how to do it in one line though....

  3. #3
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    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.

  4. #4
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width