Thanks Richard, I was using this GETOBJECT() command, but the problem is, I had two instances of Access.Application running with two different DBs. :) Then the GETOBJECT() only caught the first one, which I want to leave open. Thanks though
Richard Kaye wrote: > Not sure about the API but you might be able to use automation to accomplish > something like this. > > <untested code alert> > m.loAccess=GETOBJECT(,[access.application]) > IF VARTYPE(m.loAccess)=[O] > m.loAccess.Quit > ENDIF > m.loAccess=NULL > </untested code alert> > > Of course, this does not take into account open files in a changed state that > need to be saved or reverted, etc. > > rk > > -----Original Message----- > From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] On > Behalf Of Philip Borkholder > Sent: Friday, August 14, 2009 2:30 PM > To: profoxt...@leafe.com > Subject: using FindWindowEx and close another Win 32 app > > Hi All, > I'm using the win 32 api FindWindowEx > to get the handle of an open application (MS.ACCESS) > once I get that handle, > is there another win 32 api to then close it via VFP? > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/4a85b6a4.6070...@netzero.net ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.