Hi Chuck ----
A problem with debugging this for you is that you need to post some sort of expository on what is supposed to be happening. I do see some things: Look at this:
I can see that the program could hang here with SET DELETED OFF. Also, have you considered replacing your DO WHILE !EOF() with SCAN...ENDSCAN constructs? Less code, simpler.
Please post what you are trying to do and maybe replacement code can be posted.
>SELECT histtemp
>LOCATE
>DO WHILE NOT EOF()
> IF class = varclass AND ;
> fund = varfund AND ;
> udds = varudds AND ;
> amount = varamount AND ;
> fy = varfy AND ;
> activity = varactivity AND ;
> account = varaccount
> DELETE
> SELECT temptemp
> DELETE
> EXIT
> ELSE
> SKIP
> IF EOF()
> SELECT tab3
> APPEND FROM DBF("tempcur")
> ENDIF
> ENDIF
>ENDDO
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05