Ok, then that is your problem. It is not open, or at least it is not available where this code is run. How is grdDistribution created? Where is it created? Is this a form? Classes? The more detail information you can give - code examples - the better.
>hi,
>
>thank you for replay,
>i got error message
>'grdDistribution.dbf' dose not exist
>
>thanks.
>
>
>
>>Does this not work? What is happening? Errors or just no data?
>>
>>
>>use mytable in 0
>>SELE MyTable
>>locate for ....
>>if !found()
>> Append from grdDistribution
>>endif
>>
>>
>>
>>>hi all,
>>>
>>>i need to append from cursor to my table as..
>>>Create Cursor crsDist.........
>>>.
>>>.
>>>Locate
>>> .grdDistribution.RecordSource = 'crsDist'
>>>
>>>i try as under....not work
>>>
>>>use mytable in 0
>>>locate for ....
>>> if !found()
>>>*Append from dbf('grdDistribution')
>>>*Append from DBF(grdDistribution.RecordSource = 'crsDist')
>>>*append from cursor ('crsDist')
>>>*append from (crsDist.cursor)
>>>else
>>>.
>>>.
>>> endif
>>>
>>>thanks.