Hi Kenneth ---- When you open a form with a Public datasession from a Private one, the Public form shares the private DS. Therefore, in your case, consider making Form2 a Public datasession and it should be able to bind to any cusror or table created in Form1.
>
>Has anyone experienced this before? I've 2 forms, both Private DS. Form1 creates a temporary cursor by :-
>
>SELECT * FROM (cTable) INTO CURSOR cTemp NOFILTER
>DO Form2 WITH DBF('cTemp')
>
>Form1 calls Form2 with the ?.TMP name. Form2.Init fails to open the file.
>
>However :-
>
>SELECT * FROM (cTable) INTO CURSOR cTemp NOFILTER
>USE DBF('cTemp') IN 0 AGAIN SHARED ALIAS abc
>
>works within Form1
>
>TIA
>
>Kenneth
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05