Juan,
we give you tips, we don't write your code. :-) You must replace field1 with the name of your first field, and so on. Since we don't know the structure of your table and/or we don't want to know, we answer in more generic terms.
>""If you just want to store the values of the fields in textboxes:
>
>Select * from proyecto ;
> where tipomed = m.type_p and numero = m.numero ;
>Into cursor ResultSet
>
>thisfirm.text1.Value = ResultSet.Field1
>thisfirm.text2.Value = ResultSet.Field2
>etc.
>Is that what you want?""
>
>well...
>
>when i use I get this error:
>
>Variable 'FIELD1' is not found
>Variable 'FIELD2' is not found
>Alias 'RESULTSET' is not found
>
>:(