473,386 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

MLH
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?
Nov 13 '05 #1
13 1801
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" <CR**@NorthState.net> wrote in message
news:jj********************************@4ax.com...
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?

Nov 13 '05 #2
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:
No.


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

Nov 13 '05 #3
MLH
Too bad. Well, maybe it would be riddled
with difficulties.
xxxxxxxxxxxxxxxxxxxxxxxx
No.


Nov 13 '05 #4
MLH
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
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.


Nov 13 '05 #5
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

Nov 13 '05 #6
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

Nov 13 '05 #7
"Bas Cost Budde" wrote
. . . 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.


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
Nov 13 '05 #8
Bas Cost Budde <b.*********@heuvelqop.nl> wrote in
news:d9**********@localhost.localdomain:
I spent some time writing an automated error handler insertion.
But I dare not give that away, it is far too buggy.


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
Nov 13 '05 #9
Allen Browne wrote:
No.


And you say I'm succinct :-)

--
[OO=00=OO]
Nov 13 '05 #10
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" <no****@besty.org.uk> wrote in message
news:42***********************@news.zen.co.uk...
Allen Browne wrote:
No.


And you say I'm succinct :-)

--
[OO=00=OO]

Nov 13 '05 #11
On Thu, 30 Jun 2005 15:38:19 +0800, "Allen Browne"
<Al*********@SeeSig.Invalid> wrote:
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? :-)


NO
Nov 13 '05 #12


Wayne Gillespie wrote:
On Thu, 30 Jun 2005 15:38:19 +0800, "Allen Browne"
<Al*********@SeeSig.Invalid> wrote:
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? :-)


NO


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

James A. Fortune

Nov 13 '05 #13
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.*********@heuvelqop.nl> wrote in message
news:d9**********@localhost.localdomain...
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

Nov 13 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nick | last post by:
How to change the pic to a "show error" image when loading images failed - for example, no image file exists? I tried to add the following statement in the onload event function: if...
1
by: Brad | last post by:
I'm trying to use Active Directory to retrieve information for a user...for display purposes.. I am not using windows authentication or impersonation....I am using a fixed user id and password for...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
10
by: Roy | last post by:
Judging from the sheer number of posts on this topic, I'm sensing this is a fairly common problem. Only problem is, I've tried just about every recommendation in all the posts I've found thus far...
1
by: Dave | last post by:
I am getting te following error in a ASP.Net app that is running on Win XP Pro (SP2): Server cannot access application directory 'C:\Documents and Settings\dave\My Documents\My Visual Studio...
0
by: dashprasannajit | last post by:
package djvusearching; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.lucene.analysis.cjk.CJKAnalyzer; //import...
7
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement...
5
by: Nathan Sokalski | last post by:
I have an ASP.NET application which is giving the following JavaScript error: 'theForm' is undefined However, when I do a View Source one of the <scriptelements is as follows: <script...
2
by: hlnet | last post by:
I am newbie. I want use query : SELECT public.Master.ID, public.Master.Description from Master , but ->Error missing table Master .If use query : SELECT "public"."Master"."ID",...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.