Sure, Vince. I got bitten by the default behavior of SQLDISCONNECT(). In the DESTROY method of one of my forms was this little gem:
SQLDISCONNECT(thisform.nHandle1) The problem is, if the user never hit the process that established that handle, it's default value is 0. Pass 0 to SQLDISCONNECT() and it closes *all* open handles. Oops. Richard Kaye -----Original Message----- From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] On Behalf Of Vince Teachout Sent: Wednesday, April 01, 2009 9:09 AM To: profoxt...@leafe.com Subject: Re: SQL Server connection handle is invalid As always, please post the answer, since you asked the question, so that others in the same boat can benefit.... :-) _______________________________________________ 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/df1eef11e586a64fb54a97f22a8bd044153e7...@ackbwddqh1.artfact.local ** 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.