>>Thanks for going to the trouble of doing this. At Cetin's suggestion I removed the lines referencing memo fields and then it worked. So you are saying the problem isn't with the SELECT syntax so there must be something happening in the data in those memo fields - can't figure out how that would translate to a "String too long to fit" error ...
>
>And I even didn't notice that I have MAX(Memo) in the query! No matter that I create a cursor :-(. Hmmm, not good for me.
Well, today my colleague claims the select works for him. I like the CAST(null as memo) thing to get a blank memo field in the result set. But with data being pulling into the cursor that you constructed by hand I get the error. Odd. I am going to have to see him run it to believe it <g>
Charles Hankey
Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy
Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.
-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin
Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.