>Fantastic!!!! I have tested your code with different incorrect scenerios and it works seemlessly.
>
> thanks Chuck.
>
>
>k
If you know the correct table you can always select that before you do the append. I don't know your application but if "right" is the alias of the table you can always select it first if it's not selected
ln_area = SELECT(0)
IF ALIAS() <> "RIGHT" AND USED("RIGHT")
SELECT right
APPEND FROM m.txt TYPE SDF
ELSE
=MESSAGEBOX('Table Right not open')
ENDIF
SELECT (ln_Area)
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers