You are absolutely right Tore. It doesn't make sense but it's the only suggestion that made the isnert work.
To fix something one needs to know what needs to be fixed ;-)
I never experienced a problem like that one before. I reallt don't know what I sould do to fix this the logical way.
>Your explanation doesn't make sense to me, I suggest you spend some more time and fix whatever is wrong in your code.
>
>>Problem solved... but I still don't get it.
>>
>>Solution was to put a go top in the cursor where I wanted to do an insert.
>>
>>Many thanks for all your help.
>>
>>>>Hello all,
>>>>
>>>>I am building a cursor for a report. I scan all the data from a given table. For each of those records I scan I insert a record in a new cursor that will be used for the report.
>>>>
>>>>When the scan is finished I want to insert other records in that created cursor. The problem is that the insert is not inserting after the Scan...EndScan sequence.
>>>>
>>>>This is really weird.
>>>>
>>>>I use the same insert after the SCAN that I used in the SCAN.
>>>>
>>>>I really don't get it.
>>>>
>>>>Heeeeelp!
>>>
>>>Are you debugging this problem? Can you show some code? May be the condition to run that code is false.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé