>>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.
Yes thanks. In the moments after my posting, I removed the DE from the form, opened the dbf in the different and real location, modified the form and added the DE again. That seems to work. Perhaps quik & dirty?
-TB
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."