>Has anyone ever seen this problem before.
>
>IF USED("TableName")
> SELECT a
>ELSE
> SELECT b
>ENDIF
>
>After these lines of code Table c is selected. There is only one work area.
>We have a work around, because if you specify the work area in the select statement, it works fine. I would just like to know if anyone else has ever experienced this problem before. I mean, it is an if else statement, how in the world can c end up being selected. Thanks for any input.
Are your aliases really called "a", "b" and "c"? Because the letters A-J are reserved as synonyms for areas 1-10. If this is the case, you should use other aliases.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)