>No problem.. I have the same problem all the time.. Now how about having to work on an app that has to keep track of those used datasessions and pass them as parameters?? I am (What a pain in the %^#*%# !!)..
>
>Thanx!
>
>Tony Miller
>Vancouver, Wa
Tony, I'm jumping in without all the facts, but are you passing the datasession to another form to match the data? If so, it might be easier to pass just the form object (do form2 with thisform) then store the 'thisform' object to a property in the INIT.
parameter oOldForm
Thisform.oOldFormProperty = oOldForm
That way you can refer to the Form1 datasession with
nID = thisform.oOldFormProperty.DatasessionID
Also, you can run through the open forms using _screen.controlcount to check active DSIDs
HTH
Barbara