Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Application Object - Error

Status
Not open for further replies.

BusObj

MIS
Apr 23, 2001
8
US
Hi
Im displaying a few command buttons on a document_Open event. I ve placed command buttons to open different documents. ONe of the cmd buttons is an exit button to quit the BO application.
i just have this code on Exit button's click
Application.Quit

Its throwing an , "Invalid Object" error !
The tricky part is that, if i open other documents first (by clicking the command buttons), the application objects that i have used in those documents are working well!
But if i click on the exit button, it throws this error.

it works fine ,the next time ONLY if i close the application itself and open it again.
its absolutely fine, asking me if i want to save the documents that i played with.. before quitting BO.

Is there anything that i should set to avoid this error?

Thanks
Kkay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top