>>
>>Per, you might be getting a filtered table instead of a true cursor in your first SELECT statement. Try adding the clause NOFILTER to each select. It won't hurt, might help. Usually this is not a problem when you have one field with the AS clause, but here (I think) you are using a real field name.
>>
>>HTH
>>Barbara
>
>Barbara I tried NOFILTER on all my cursor but I get the same error!! What is THIS!
>
>Best regards
>
>Per Simmersholm
Per, try this:
SELECT andreprodukt1
cFile = dbf()
USE (cFile) AGAIN IN 22 ALIAS andreprodukt && error is trapped here!
I looked at some of my similar code, and found I also had had trouble with the dbf('myfile') syntax. By changing it to the format above it worked all the time. The problem is with dbf() not wanting to accept an alias under certain circumstances.
I hope it will work this time....
Barbara