In form2 the reference to thisform will be form2, not form1.
>Hi
>
>Yes, I have it in the form1 not in the form I execute do commands.
>
>****************************************************************************************
>SELECT RESERVA
>
>
>SET FILTER TO IIF(EMPTY(thisform.date_filter.Value),ALLTRIM(thisform.cod_CURSO.Value) $ curso_id , date_curso = thisform.date_filter.Value AND ALLTRIM(thisform.cod_CURSO.Value) $ curso_id)
>
>*********************************************************************************
>
>
>Then: do form2 by command in button
>
>The problem happens in form2.
>
>
>Moises
>
>
>
>
>
>
>>Do you have filter set (SET FILTER) on the table in question?
>>>
>>>I have an error message as below:
>>>
>>>“Unknown member: date_filter” although I dont have such a member in command line
>>>
>>>
>>>STORE thisform.cod_curso.Value TO CUR1
>>>
>>> STORE thisform.end_curso.Value TO end1
>>>
>>> SELECT reserva
>>> REPLACE ALL loc_curso WITH end1 FOR CURSO_ID = CUR1 ( error happens here)
>>>
>>>I wonder if this might be the first bug I saw in VFP and not an error mine.
>>>
>>>The content CUR1 value is has a date format, something as “RIO-COURSE15/09/2015”
>>>
>>>Does anybody has na Idea what it can be ?