473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1818
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**@NorthStat e.net> wrote in message
news:jj******** *************** *********@4ax.c om...
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.
xxxxxxxxxxxxxxx xxxxxxxxx
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?
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxx
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.*********@he uvelqop.nl> wrote in
news:d9******** **@localhost.lo caldomain:
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

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

Similar topics

1
2297
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 (!document.images.AImage.complete) { document.images.AImage.src = "error.gif";); } However, I found that a lot of images can be successfully loaded will also be replaced with the "error.gif".
1
4161
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 initializing the DirectoryEntry object. For example sake our domain name is mydomain.net so the LDAP path I use is LDAP://DC=mydomain,DC=Net Notice I am not specifying a server in the LDAP path which and I would prefer to not use the server...
3
8820
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 don't think I made any changes to either page other than changing the user control that creates the header). Server Error in '/myApp' Application. ---------------------------------------------------------------------------- ----
10
1453
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 and none have worked. I have XP on my workstation and two servers that run server 2003. I have sql server dev edition on all 3, but only VS.NET on my workstation. I have .NET framework 1.1 on all 3 machines.
1
8536
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 ASP.NET\MyWebSite\'. The directory does not exist or is not accessible because of security settings. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information...
0
2841
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 org.apache.lucene.analysis.standard.StandardAnalyz er; import org.apache.lucene.queryParser.ParseException;
7
38001
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 using innerHTML. Now, I've researched this problem on the web, and found many references to it, but none of them quite addressed my specific situation, and since my experience with JavaScript is limited, I was not able to adapt the solutions I...
5
10796
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 type="text/javascript"> <!-- var theForm = document.forms;
2
3107
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", "public"."Master"."Description" from "Master" It is OK. SELECT "ID", "Description" from "Master". It's OK SELECT ID, Description from "Master" . ERROR : column "id" does not exist at character 8.
0
7886
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.