>Ed,
>
>Thank you for the reply.
>
>I have been playing with this for the last few hours. Mostly reading. I have noticed that if I have a form opened using the second data session and use a command button to open a second form the data sessions name changes to that of the second form. The tables don't close until I close both forms. The data session is still there (which I want it to be) but is named unknown(2). Why would the data session name change? Does it have to do with the forms datasession property and the datasessionid?
>
What are the datasession property of the forms set to? They should be set to 1 - Default. This setting means that when the form is laucnhed, it will not create a new datasession but will participate in the datasesion that launched it.
I'm curious as to why you need to create datasessions programatically when you are using forms. Forms have their own datasessions so why not use them instead of the Session object?
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao