Hi
>That's why you need an error trapping procedure. That's basically the only way to find, if the table could be opened excusively or not.
I just gave your code a try but it seems that the class/form takes the error responsibility so the following line raises an error in the CodeBook framework rather than the error number being assigned to lnErr=ERROR()
USE (m.tcTable) AGAIN &tcMode IN 0 ALIAS (m.tcAlias)
Please advise, how can I let your function handle the error rather than passing it up he heirarchy?