Make your second form modal. In the Unload() event, return the selected code (RETURN Thisform.SelectedCode). In the command button Click() event, put this:
DO FORM SelectACode TO lcSelectedCode
IF NOT Empty(lcSelectedCode)
Thisform.MyTextBox.Value = lcSelectedCode
ENDIF
HTH
>I have on my system a form where, the user has to put a code, if it´s doesnt know, a form with codes and descripcion could by call, when the user selec a code and push ok bottom this form should release and show the code in the textbox.