Connecting Tech Pros Worldwide Help | Site Map

Does anything like a "master error trap" exist in A97?

MLH
Guest
 
Posts: n/a
#1: Nov 13 '05
I'm thinking that maybe error trapping code could be
in a global module (standard procedure) and a Master
"OnError" statement could be set. Is anything like this
in use with VBA for A97?
Allen Browne
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


No.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"MLH" <CRCI@NorthState.net> wrote in message
news:jj95c19v6loe9giv9er48sas9bvd05fj0l@4ax.com...[color=blue]
> I'm thinking that maybe error trapping code could be
> in a global module (standard procedure) and a Master
> "OnError" statement could be set. Is anything like this
> in use with VBA for A97?[/color]


Bas Cost Budde
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


Error handling code can be in a general module. But you have to include
the On Error statement in every procedure that may some day cause a run
time error. In daily speak, that's every procedure.

Allen Browne wrote:
[color=blue]
> No.
>[/color]

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

MLH
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


Too bad. Well, maybe it would be riddled
with difficulties.
xxxxxxxxxxxxxxxxxxxxxxxx
[color=blue]
>No.[/color]

MLH
Guest
 
Posts: n/a
#5: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


Well now, that I can handle. Will have an experimental go at it.
Thanks.

ps... did you happen to see my recent post asking for some
guidance/suggestions integrating retail ms access 97 and runtime 97?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx
[color=blue]
>Error handling code can be in a general module. But you have to include
>the On Error statement in every procedure that may some day cause a run
>time error. In daily speak, that's every procedure.[/color]

Bas Cost Budde
Guest
 
Posts: n/a
#6: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


I spent some time writing an automated error handler insertion. But I
dare not give that away, it is far too buggy.

If you like to try anyway, you can mail me. Please note in my real mail
address the letter q does not occur; it should be a t

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Johnny Meredith
Guest
 
Posts: n/a
#7: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


I purchased a book from Wrox publishing a year or two ago that came
with an add-in that automatically inserts error-handling into a module,
form, or all modules/class modules with the click of a button.

It works great. My only complaint is that you can't do much
customizing of the output it generates; that said, the error-handling
block it produces only requires slight modification for my personal
preferences. The book was Beginning Access 2002 VBA. Maybe look at
the Wrox website and see if they offer it for download???

-Johnny

Larry Linson
Guest
 
Posts: n/a
#8: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


"Bas Cost Budde" wrote
[color=blue]
> . . . But you have to include the On Error
> statement in every procedure that may some
> day cause a run time error. In daily speak,
> that's every procedure.[/color]

However, if you consistently use a Code Library, almost all of them provide
for a "skeleton structure" for procedures which can include some basic error
handling. A commercial product of this kind is FMS, Inc.'s Total Visual Code
Tools for Access 2003, and other recent versions...
http://www.fmsinc.com/products. MVP Arvin Meyer has a free tool called
CodeWriter2 at his site, http://www.datastrat.com/DataStrat2.html, which I
have used for the same purpose.

Also, twice in my career, I have been called upon to write code to add basic
error handling to rather extensive databases, one was an Access 2.0 MDB and
the other was an Access 2000 ADP. It worked both times, with a lot less
manual "fixup" than I had anticipated. Both were complicated by the fact
that there is some error handling in code generated by Wizards -- that has
to be taken into account.

I couldn't post the code even if I had a copy, because it belongs to the
client in each case. They were interesting projects, separated by almost ten
years of time. I guess I should have made agreement with the first client to
retain rights and kept a copy of the code to use as a starting point, eh? As
the first client has discarded the Access 2.0 application, even they would
not have that code. There's probably no one there who even remembers that
kind of detail about the application, and maybe no one who remembers the
application at all.

Larry Linson
Microsoft Access MVP


David W. Fenton
Guest
 
Posts: n/a
#9: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


Bas Cost Budde <b.costbudde@heuvelqop.nl> wrote in
news:d9uo9j$3je$3@localhost.localdomain:
[color=blue]
> I spent some time writing an automated error handler insertion.
> But I dare not give that away, it is far too buggy.[/color]

Didn't writing that make you giggle? :)

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Trevor Best
Guest
 
Posts: n/a
#10: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


Allen Browne wrote:[color=blue]
> No.
>[/color]

And you say I'm succinct :-)

--
[OO=00=OO]
Allen Browne
Guest
 
Posts: n/a
#11: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


You would prefer a verbose proliferation of polysyllabic monstrosities,
diametrically opposed to the fundamental purpose of supplying an
intelligible and unencumbered response to the OP's salient issue? :-)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Trevor Best" <nospam@besty.org.uk> wrote in message
news:42c39d5d$0$22622$da0feed9@news.zen.co.uk...[color=blue]
> Allen Browne wrote:[color=green]
>> No.
>>[/color]
>
> And you say I'm succinct :-)
>
> --
> [OO=00=OO][/color]


Wayne Gillespie
Guest
 
Posts: n/a
#12: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


On Thu, 30 Jun 2005 15:38:19 +0800, "Allen Browne"
<AllenBrowne@SeeSig.Invalid> wrote:
[color=blue]
>You would prefer a verbose proliferation of polysyllabic monstrosities,
>diametrically opposed to the fundamental purpose of supplying an
>intelligible and unencumbered response to the OP's salient issue? :-)[/color]

NO
jimfortune@compumarc.com
Guest
 
Posts: n/a
#13: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?




Wayne Gillespie wrote:[color=blue]
> On Thu, 30 Jun 2005 15:38:19 +0800, "Allen Browne"
> <AllenBrowne@SeeSig.Invalid> wrote:
>[color=green]
> >You would prefer a verbose proliferation of polysyllabic monstrosities,
> >diametrically opposed to the fundamental purpose of supplying an
> >intelligible and unencumbered response to the OP's salient issue? :-)[/color]
>
> NO[/color]

LOL. He forgot to use "sesquipedalian." :-)

James A. Fortune

Douglas J. Steele
Guest
 
Posts: n/a
#14: Nov 13 '05

re: Does anything like a "master error trap" exist in A97?


Take a look at MZ Tools
http://www.mztools.com

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Bas Cost Budde" <b.costbudde@heuvelqop.nl> wrote in message
news:d9uo9j$3je$3@localhost.localdomain...[color=blue]
>I spent some time writing an automated error handler insertion. But I dare
>not give that away, it is far too buggy.
>
> If you like to try anyway, you can mail me. Please note in my real mail
> address the letter q does not occur; it should be a t
>
> --
> Bas Cost Budde, Holland
> http://www.heuveltop.nl/BasCB/msac_index.html
>[/color]


Closed Thread