>Thanks Cetin - that looks complex!!!
>
>I get an error "TEMPREPORT must be created with SELECT...INTO TABLE"
>
>I am sure what's going on so I will try to work it out line by line...
>
>Chris
Chris,
Sounds like a version problem. Add 'nofilter' after 'into cursor tempreport'
Cetin