Hi,
>>
My Form will use different tables names but with the same alias depend on user selection.
for Example : Inventory Table could be Items1 or Items2 or Items3
I want to use the DE but I have to define the table name, my problem that Table name will be different, so how can I still use the DE.
I can open the tables myself in the Load event but I want to get the advantage of the sursor properties and events within DE.
>>
If the user can select the required table before the form is instantiated:
At design time set .AutoOpenTables to .F. , set the cursorsource property to, say, "Inventory". In the form.init():
this.dataenvironment.Inventory.CursorSource = "Items1"
this.dataenvironment.OpenTables
HTH,
Viv