Hi,
Forgot to CC you for message #
948882 Cetin is right, I haven't checked this function for a long time, it has several problems.
The Error method of class or form has precedance over ON ERROR routine, that's why there should be a hook in that method.
>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?
If it's not broken, fix it until it is.
My Blog