Thanks a lot Naomi. I think that I will be able to share the DS!
>>I have a cursor in the private data session of one form that I would like to be able to access at the startup of another form.
>>
>>I was thinking that I could get a reference to the calling form, get the DataSessionID, save the current DataSessionID, SET DATASESSION to the data session of the other form, query for the data I want, and then switch the data session back.
>>
>>Will this work, or is there a better way?
>
>Few ways.
>
>1) Share DS between forms - if form 2 is a child form of the first form, then this form may use default DS thus it would share main form private DS
>
>2) Pass data using CursorToXML/XMLToCursor - useful for not very big tables
>
>3) Instead of a cursor use the temporary table
>
>4) Check
How to pass cursor between two VFP datasessions (without using XML) FAQ #29297