SET SAFETY OFF SELE 0 CREATE TABLE TEST (cname c(15)) SELE test APPEND BLANK REPLACE test.cname WITH "Smith" SELE 0 CREATE TABLE TEST2 (cfname c(15)) SELE test APPEND BLANK REPLACE test2.cfname WITH "Betty" CLOSE TABLES oform=CREATEOBJECT('Testform') oform.show() READ EVENTS RETURN ************************************************** *-- Class: testform (c:\profiler\progs\testform.vcx) *-- ParentClass: form *-- BaseClass: form *-- Time Stamp: 07/28/03 04:26:01 PM * DEFINE CLASS testform AS form Top = 0 Left = 0 Height = 287 Width = 422 DoCreate = .T. Caption = "Form1" Name = "Form1" ADD OBJECT grdtest2 AS grid WITH ; Height = 107, ; Left = 72, ; RecordSource = "test2", ; RecordSourceType = 1, ; Top = 18, ; Width = 320, ; Name = "grdTest2" ADD OBJECT grid1 AS grid WITH ; Height = 107, ; Left = 72, ; RecordSource = "test", ; RecordSourceType = 1, ; Top = 154, ; Width = 320, ; Name = "Grid1" ADD OBJECT label1 AS label WITH ; Caption = "Test2 opened in data environment", ; Height = 17, ; Left = 12, ; Top = 0, ; Width = 216, ; Name = "Label1" ADD OBJECT label2 AS label WITH ; Caption = "Test opened in form load event", ; Height = 17, ; Left = 12, ; Top = 132, ; Width = 204, ; Name = "Label2" PROCEDURE Load SELE 0 USE test GO TOP ENDPROC PROCEDURE Unload USE IN TEST CLEAR EVENTS ENDPROC ENDDEFINE * *-- EndDefine: testform **************************************************I haven't noticed this to be a problem or determined a workaround because I typically load all of the tables in the form's load event. If I do decide to use the dataenvironment, I don't load tables manually in the form's load event so it has never been an issue.