WTF !!! Maybe in Access 1.x, but not that I remember in Access 2,
which that article also refers to.
a) You do NOT need to put line numbers on new lines.
b) You do NOT need to put colons on line numbers.
c) Even if you put colons on line numbers, they still work, and
d: Even if you put colons on line numbers, they don't need to be on new
lines.
The other thing I'd add is that you often see examples like this:
Sub ErrorTest ()
On Error Goto ErrorTest_Error
With the subroutine name duplicated in the catch label. That is
a waste of effort, makes it impossible to cut-and-paste your
error handlers, and gets out-of-date if you change your subroutine
name. It is a vague historic hang-over from when BASIC used
line numbers as a natural primary key, and the catch labels needed
to be numeric and unique.
Instead,
Sub ErrorTest ()
On Error Goto Catch
....
exit sub
Catch:
call myhandler(erl)
raise err
end sub
Capture the error line and keep raising the error until you get to
the top level calling function on a form, where you can return a
user interface notification instead of an internal error.
(david)