>>>Hi,
>>>
>>>I meet a weird problem in my code. When I'm executing this loop I get a "data type mismatch" error message on the line "SELECT curProspect". The error occurs only at the first pass and if I click on "Ignore" button then the loop goes through normaly. If I "suspend" the code then select manually the cursor and resume everything works fine.
>>>
>>>Is somebody has a solution or a clue to help?
>>>
>>>Thanks,
>>>
>>>Normand
>>
>>See corrections to your code inside the original code.
>
>I see it now. It was LOCAL declaration inside the loop! It may really produce funny results.
Yes, that's too. And also there is a general rule if you can use SCAN don't use DO WHILE !EOF() <g>
If it's not broken, fix it until it is.
My Blog