Ask a questionAsk a question
 

Questionautomation error server threw an exception

  • Tuesday, October 27, 2009 10:42 AMNikhil Kajrekar Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    For Each objObj In .CurrentProject.AllForms

    DoEvents
    intObj = intObj + 1
    .DoCmd.OpenForm objObj.Name, acDesign, , , , acHidden

    Set objForm = .Forms(objObj.Name)
    With objForm
    'my task
    end with
    .DoCmd.Close acForm, objObj.Name
    next
    :errorhand
    Resume Next


    in the above code i am getiing automation error server throw an exception this error when one of the form gets opend after that next fomrs not get accessed it throws new error
    automation error the object invoked has disconnected from its clients how do i access next fomrs

All Replies

  • Tuesday, October 27, 2009 2:53 PMMalange Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    For Each objObj In .CurrentProject.AllForms

    DoEvents
    intObj = intObj + 1
    .DoCmd.OpenForm objObj.Name, acDesign, , , , acHidden

    Set objForm = .Forms(objObj.Name)
    With objForm
    'my task
    end with
    .DoCmd.Close acForm, objObj.Name
    next
    :errorhand
    Resume Next


    in the above code i am getiing automation error server throw an exception this error when one of the form gets opend after that next fomrs not get accessed it throws new error
    automation error the object invoked has disconnected from its clients how do i access next fomrs
    post the error here please:



    Don't judge me, just Upgrade me. Thanks!
  • Wednesday, October 28, 2009 5:27 AMNikhil Kajrekar Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    automation error server threw an exception this is an error i am getting