Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Selected Alias - Solution
Message
From
30/06/1999 09:53:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/06/1999 10:47:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00235251
Message ID:
00235867
Views:
14
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform