Paul,
Hope this helps.
Dave Crozier
*************
* Start of Code
*
Local oSession as Session
Local oDS_ID_Old as Integer
Close tables all
Set step on
* Open table in default datasession
Use customer Again In 0
* Save the current Datasession Id
oDS_ID_Old=_Screen.DataSessionId
* Create the New Datasession
oSession=Newobject("Session") && or use CreateObject()
* Set Datasession to the new Daasession
* Look at the debugger to see it activate
*
oDS_Id=oSession.DataSessionId
Set Datasession To oDS_Id
* The tables are now opened in the new datasession
Use customer Again In 0
Use supplier Again In 0
Close all
Close databases all Note this leaves the original database open
*
* Pick up the original datasession
* which still has the old database open
Set Datasession To (oDS_ID_Old)
Release oSession
*
* End of Code
*******************
_______________________________________________
Post Messages to: [email protected]
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/[EMAIL PROTECTED]
** 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.