>Hello All,
>
>Thanks to Evan Daly's reminder to set form property DataSession to 2(private datasession), the problem is solved.
>
>Many than thanks to Evan.
>
>Regards,
>
>Paige
>
>Problem as described:
>
>I have an app.... that contains a doctors form, an Invoice form and others.
>
>A button on the doctors form when clicked creates a new record in the Invoice table with the data from the currently displayed Doctors record then calls/displays the Invoice form with the new data. This all works.
>
>At this point I get a Selected Alias error when Iattempt to access any fields or save the record.
>
>I get no errors if I open the form directly. Only if I come from the Doctors form.
>
>I've tried inserting Using Invoice, Selecting Invoice again in the Invoice form to no avail. Any suggestions? TIA.
Sounds like you're not using private datasession in invoice form. Make it private and pass doctor's id to it. Invoice form then could insert new data or edit existing etc.
If it should be Default datasession then set autoopentables, autoclosetables to .f. so it doesn't hack with default session tables opening, closing.
Cetin