hi,
ok, the solution is,i must put thisform.timeadd befor (plan ),it works
but if the result is true it move to column7 but at the first record,not next record.
IF nkeycode=13
m.a=thisform.timeadd(thisform.timeadd(thisform.timeadd(thisform.timeadd(true,hot),balanc),mint),other)
m.w=thisform.timeadd(plan)
thisform.text1.Value=m.a
thisform.text3.Value=m.w
IF m.a=m.w
=MessageBox("true")
grdTable = thisform.Grid1.RecordSource
SKIP IN (grdTable)
IF EOF()
SKIP -1 IN (grdTable)
ENDIF
ELSE
=MessageBox("false")
ENDIF
thisform.Grid1.column7.SetFocus()
thisform.Grid1.Refresh()
ENDIF
thanks
>>hi,
>>thank you,but still the message is fals all the time
>>and i get error message unknown member plan
>
>This means that the computer has no idea what you meant when you said "plan."
>
>What is plan?
>
>Is it a form or object property? You may have to include a properly formulated reference (thisform.thisobject.plan)
>
>Is it a memory variable? It has probably gone out of scope and may need to be passed as a parameter.
>
>Is it a field in a table? If it's not the currently selected table you will need to provide the alias.
>
>None of the above? You'll have to let us know so we can provide some additional help (or even better, try to figure it out on your own)