=.... =SQLEXEC(gnConnHandle, "SELECT * FROM sqltable","mytable") =CursorSetProp("Tables","mytable") Local cNameList,cFieldList for i = 1 to FCount() If i = 1 cNameList = Field(i) + " " + "mytable." + Field(i) cFieldList = Field(i) Else cNameList = cNameList +", "+ Field(i) + " " + "mytable." + Field(i) cFieldList = cFieldList +", "+ Field(i) EndIf EndFor =CursorSetProp("UpdateNameList",cNameList) =CursorSetProp("KeyFieldList",field(1)) && just assume =CursorSetProp("UpdatableFieldList",cFieldList) =CursorSetProp("SendUpdates",.T.)Hope this help you.