>How do I change the data environment of my form to another dbf with same structure but different location?
>T -TB
In the BeforeOpenTables method of the DE, you can add code to access the Cursor objects of the DE, check the CursorSource property to see if it is the correct cursor, and change the property to something else.
When the DE does open the cursor, it will access the cursor object to get the necesasry information. Check out Message#
349239 for an example.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao