>>Hi everybody,
>>
>>I have a form with quite complicated DE. I now need to open different set of tables depending on some properties...
>>
>>Being lazy, I'm thinking, is there a way to "Auto-Generate" code to replicate this DE?
>>
>>Thanks in advance.
>
>Hi Nadya,
>
>in the DE's BeforeOpenTables event, you can change the .DATABASE and .CURSORSOURCE of the cursors to whatever it is that you need. You can use amembers(laDEObjects,this,2) to get all the cursor objects, etc.
>
>enjoy,
>
>Hank
Sounds like an easier route... Thanks.
If it's not broken, fix it until it is.
My Blog