Results 1 to 3 of 3

Thread: Hmmm

  1. #1
    Join Date
    May 2004

    Unanswered: Hmmm

    never seen this before, but I keep getting an error > "Operationg is not allowed while the object is closed" I thought maybe I was getting this due to an error in my stored procedure, however the procedure runs fine. Could this be an error in my procedure that it's just not catching? Or is it more likely to be in my VB code? Anyone know in general why this happens? Thanks.

  2. #2
    Join Date
    May 2004
    here's my code for the event that i get the error on...

    Private Sub cmdDelete_Click()
    On Error GoTo ErrLabel:
    If MsgBox("Are You Sure You Wish To Delete This Record?", vbYesNo) _
                = vbYes Then
    strSQLXRefGrid = _
                        "up_UpdateXRefTable " & _
                            intActID & "," & _
                            intPrimaryID & "," & _
                            intSecondaryID & "," & _
                            intXRefID & "," & _
    Set rsSubmit = _
    PopulateSecondaryGrid _
    strSQLXRefGrid, _
    "xr_intActID", _
    "xr_intSecondaryID", _
    "Secondary Title:", _
    "sm_strSecName", _
    "No Records Currently Exist", _
    End Sub
    Last edited by Smitty81; 12-21-04 at 14:26.

  3. #3
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    Where do you open "global_adoConnection"?

    Where do you dim "rsSubmit"? Are you explicitly diming it? There could be a globally defined "rsSubmit" on another open form that is in use.

    Can you check that your global_adoConnection is open. I believe there is a property on the ADODB connection object that let's you test for this.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

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