>I select certain data into a cursor:
>
>
>Select ...
> INTO CURSOR csrStep2 NOFILTER READWRITE
>
>
>and later similar data into another:
>
>
>Select ...
> INTO CURSOR csrStep2a NOFILTER READWRITE
>
>
>A little bit later I need to amalgamate them:
>
>Select csrStep2
>If FILE( "csrStep2a.dbf")
> Append From DBF("csrStep2a")
>EndIf
>
>
>I need to check 1st if csrStep2a exists cos sometimes the 2nd Select bears no results and so the append gives an error.
>
>The FILE() fails and it doesn't happen. I guess it's because the cursors get weird system gen'd names and get buried in a \temp folder.
>
>So, I'm having what the Americans call a "brain fart" at the moment. I've been runnin' an' shootin' and fightin' all day and now I can't think how to find the other cursor and check if it exists.
>
>Somebody HELP meh!
>
>'ppreciate it
>
>Terry
Why you use alias when you test with FILE(), but use DBF when append :o)))
If FILE( DBF([csrStep2a]))
Append From (DBF("csrStep2a"))
EndIf
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.