>Hi all,
>
>I'm trying to access the fields of a data table or the contents of variables in a form running in a private datasession - from another .prg running from the menu, not the form. I can do it if the form is not running in a private datasession and I can't change a dataseeeion while the form is running. And I've done it by a button on the form but I want to do it from the menu.
>
>The purpose of this is to facilitate the user clicking on a memu item called 'Letters' and access a .prg that will drop the name/address of the party currently displayed on the form into a Word doc.
>
>Suggestions will be appreciated. TIA.
>
>Regards,
>
>Paige
You can use the forms DataSessionID property. You will need to pass this from the form unless you have given the form an alias. Basically, SET DATASESSION TO form.DataSessionID - don't forget to set it back to what it was before changing it.