* Create a form *(in designer so it would have a DE - otherwise you should create it too) * Add a command button at bottom, right corner * Put this code in command button click and run DIMENSION myCursors[3] myCursors[1] = "employee" myCursors[2] = "customer" myCursors[3] = "orders" WITH thisform.dataenvironment .CloseTables FOR ix = 1 to alen(myCursors) .AddObject("Cursor"+padl(ix,2,"0"),"Cursor") WITH eval(".Cursor"+padl(ix,2,"0")) .Database = home()+"samples\data\testdata.dbc" .Cursorsource = myCursors[ix] .Alias = myCursors[ix] ENDWITH ENDFOR .OpenTables ENDWITH thisform.addobject("myGrid","Grid") with thisform.myGrid .Height = this.Top - 10 .width = thisform.width -10 .recordsource = "customer" .visible = .t. endwithCetin