In form, there is four containers having edit box (container class). Each edit box has different control source. The value of these edit boxes can be changed through option control (option group buttons). In the InterActiveChange event of option group I have following codes.
do case
case this.value=1
thisform.boxmemo2.edit1.value=alltrim(remarks2.remarks_a)
thisform.boxmemo3.edit1.value=alltrim(remarks2.remarks)
thisform.boxmemo4.edit1.value=alltrim(remarks1.approv_a)
thisform.boxmemo5.edit1.value=alltrim(remarks1.approv)
enddo
case this.value=2
some codes here
enddo
These codes are working well. But when I select any edit box after running the form the last value comes in the edit box. I do not want to use gotfocus in edit box. Any help please