Closing an object

Results 1 to 2 of 2

Thread: Closing an object

  1. #1
    Join Date
    Dec 1969

    Default Closing an object

    I have a function that looks like this:<BR>Function closeObject(obj)<BR> Dim ObjToClose &#039;As ADODB.Object<BR> Set ObjToClose = obj<BR> ObjToClose.Close<BR> Set ObjToClose = Nothing<BR>End Function<BR><BR>My question is: Is the object that comes in to the function (obj) still open, or does it close automatically when I set ObjToClose = obj?

  2. #2
    Join Date
    Dec 1969

    Default RE: Closing an object

    It closes when you call ObjToClose.Close.

Posting Permissions

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