473,466 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I want to examine each procedure in my class modules and standard modules (A97)

MLH
Have a look at the procedure below. In particular, note lines 1 and
21...

Private Sub JudHrngReqBtn_Click()
On Error GoTo Err_JudHrngReqBtn_Click
Dim ThisForm As String
ThisForm = Me.Name

Dim DocName As String
DocName = "frmJudicialHearingRqstNotice"
DoCmd.OpenForm DocName, , , , A_EDIT, , CStr(ThisForm)
Me.Visible = 0

Exit_JudHrngReqBtn_Click:
Exit Sub

Err_JudHrngReqBtn_Click:
Dim r As String, k As String, Message3 As String
r = "The following unexpected error occurred in Sub
JudHrngReqBtn_Click, CBF on " & ThisForm & "."
k = CRLF & CRLF & Str$(Err) & ": " & Quote & Error$ & Quote
Message3 = r & k
MsgBox Message3, 48, "Unexpected Error - " & MyApp$ & ", rev. " &
MY_VERSION$
Resume Exit_JudHrngReqBtn_Click

End Sub
Now, here are lines #1 and #21 excerpted...
Private Sub JudHrngReqBtn_Click()
r = "The following unexpected error occurred in Sub
JudHrngReqBtn_Click, CBF on " & ThisForm & "."

How can I examine each and every one of my procedures to ensure
that procedure name (shown in line #1) is referenced by hard coding
it into line #21. I would have to have code that enumerates all my
procedures, reads the procedure name and make CERTAIN that is
is typed into the r=blah, blah, blah line. Of course, that line won't
always be line #21 (obviously). This objective, I'm afraid, will not
be easily achieved in MS Access 97. Am I right?
Nov 13 '05 #1
8 1466
On Tue, 26 Jul 2005 14:51:30 -0400, MLH <CR**@NorthState.net> wrote:

"

How can I examine each and every one of my procedures to ensure
that procedure name (shown in line #1) is referenced by hard coding
it into line #21. I would have to have code that enumerates all my
procedures, reads the procedure name and make CERTAIN that is
is typed into the r=blah, blah, blah line. Of course, that line won't
always be line #21 (obviously). This objective, I'm afraid, will not
be easily achieved in MS Access 97. Am I right?

Error-handling inserts is the sort of thing a template or wizard should be able to put into code.
There are a number of tools available for VB but I don't know of one for Access and
as usual searching Google is not helped by MS having chosen such a common word as
"Access" for the name.
Maybe someone will post a tool or link which can do it for you.

If you do it by code (as opposed to have a wizard which sets things up when you
insert a new function) you could also deal with functions which already have the code in them,
but possibly incorrectly eg if the function name has changed or something has been deleted.
You would only need to put the function name once into each function as you could make it
a named constant.
Look at the properties of the module object. This will keep you busy for a bit!

Nov 13 '05 #2
Lyn
On 27 Jul 2005 06:55:04 -0500, polite person wrote:
On Tue, 26 Jul 2005 14:51:30 -0400, MLH <CR**@NorthState.net> wrote:

"

How can I examine each and every one of my procedures to ensure
that procedure name (shown in line #1) is referenced by hard coding
it into line #21. I would have to have code that enumerates all my
procedures, reads the procedure name and make CERTAIN that is
is typed into the r=blah, blah, blah line. Of course, that line won't
always be line #21 (obviously). This objective, I'm afraid, will not
be easily achieved in MS Access 97. Am I right?

Error-handling inserts is the sort of thing a template or wizard should be able to put into code.
There are a number of tools available for VB but I don't know of one for Access and
as usual searching Google is not helped by MS having chosen such a common word as
"Access" for the name.
Maybe someone will post a tool or link which can do it for you.

If you do it by code (as opposed to have a wizard which sets things up when you
insert a new function) you could also deal with functions which already have the code in them,
but possibly incorrectly eg if the function name has changed or something has been deleted.
You would only need to put the function name once into each function as you could make it
a named constant.
Look at the properties of the module object. This will keep you busy for a bit!


This tool package may help: www.mztools.com/v3/mztools3.htm

I use a customized template in this package to standardize the format all
new procedures.

Lyn.
Nov 13 '05 #3
MLH
OK. Many thanks. I will explore properties of module object for a bit.
Error-handling inserts is the sort of thing a template or wizard should be able to put into code.
There are a number of tools available for VB but I don't know of one for Access and
as usual searching Google is not helped by MS having chosen such a common word as
"Access" for the name.
Maybe someone will post a tool or link which can do it for you.

If you do it by code (as opposed to have a wizard which sets things up when you
insert a new function) you could also deal with functions which already have the code in them,
but possibly incorrectly eg if the function name has changed or something has been deleted.
You would only need to put the function name once into each function as you could make it
a named constant.
Look at the properties of the module object. This will keep you busy for a bit!


Nov 13 '05 #4
MLH
Thank-you. I wrote them asking if the MZ-Tools product supported
Access 97 running on a Win XP machine. Am awaiting their response.
Nov 13 '05 #5
MLH
Hi Michael,

MZ-Tools is a COM-addin and unfortunately Access 97 does not support
COM add-ins. Access 2000 or higher is required.

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and
VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

Nov 13 '05 #6
You will save yourself a good deal of time and effort if you license a third
party tool to search the entire database for the string of interest. Two
that I have used in the past, both of which worked, were (my favorite)
"Speed Ferret" from http://www.moshannon.com and (a close second) "Find and
Replace" by Rick Fisher http://www.rickworld.com. You might also check to
see if MVP Arvin Meyer has a tool for this purpose at
http://www.datastrat.com -- freebies but officially unsupported.

Larry Linson
Microsoft Access MVP

"MLH" <CR**@NorthState.net> wrote in message
news:u2********************************@4ax.com...
Have a look at the procedure below. In particular, note lines 1 and
21...

Private Sub JudHrngReqBtn_Click()
On Error GoTo Err_JudHrngReqBtn_Click
Dim ThisForm As String
ThisForm = Me.Name

Dim DocName As String
DocName = "frmJudicialHearingRqstNotice"
DoCmd.OpenForm DocName, , , , A_EDIT, , CStr(ThisForm)
Me.Visible = 0

Exit_JudHrngReqBtn_Click:
Exit Sub

Err_JudHrngReqBtn_Click:
Dim r As String, k As String, Message3 As String
r = "The following unexpected error occurred in Sub
JudHrngReqBtn_Click, CBF on " & ThisForm & "."
k = CRLF & CRLF & Str$(Err) & ": " & Quote & Error$ & Quote
Message3 = r & k
MsgBox Message3, 48, "Unexpected Error - " & MyApp$ & ", rev. " &
MY_VERSION$
Resume Exit_JudHrngReqBtn_Click

End Sub
Now, here are lines #1 and #21 excerpted...
Private Sub JudHrngReqBtn_Click()
r = "The following unexpected error occurred in Sub
JudHrngReqBtn_Click, CBF on " & ThisForm & "."

How can I examine each and every one of my procedures to ensure
that procedure name (shown in line #1) is referenced by hard coding
it into line #21. I would have to have code that enumerates all my
procedures, reads the procedure name and make CERTAIN that is
is typed into the r=blah, blah, blah line. Of course, that line won't
always be line #21 (obviously). This objective, I'm afraid, will not
be easily achieved in MS Access 97. Am I right?

Nov 13 '05 #7
MLH
Well, how about this approach, can anyone offer me a suggestion
here...

I could quickly do the job myself if I could somehow get all of my
lines of code into a table. I could live with truncating code lines
over 255 chars long - no problem. Can someone tell me how I
can DUMP all my standard and class modules into an Access
table for standard text based observation and study?

Subject: I want to examine each procedure in my class modules and
standard modules (A97)
Nov 13 '05 #8
I have put a piece of my code library on my site for this purpose. It's
USysPatch, under Code Modules.

These routines create a table and put all code inside. Call
createSigsTable first (once), it sets up the table; then, call gatherSigs.

As a bonus, a table will be built with all code calls from inside code.
If that is too much for you, use only the EnumDatabase calls from
gatherSigs.

There is a little more to the code; I put sparse comments inline.

MLH wrote:
Well, how about this approach, can anyone offer me a suggestion
here...

I could quickly do the job myself if I could somehow get all of my
lines of code into a table. I could live with truncating code lines
over 255 chars long - no problem. Can someone tell me how I
can DUMP all my standard and class modules into an Access
table for standard text based observation and study?

Subject: I want to examine each procedure in my class modules and
standard modules (A97)


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

Nov 13 '05 #9

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

Similar topics

6
by: MLH | last post by:
I'm new to A97 - moving up from Access 2.0 and Access Basic. Would like to build a fundamental, sound understanding of class modules. Is there a site with an example of a simplistic class module...
8
by: MLH | last post by:
I use a mouse-down procedure to trap right mouse clicks and CTRL-Right mouse clicks. Running the procedure must put honey or some other sticky substance into my keyboard because subsequent...
4
by: MLH | last post by:
If I test the integrity of my code, opening a module, clicking Debug, Compile All Modules, the process stops at the first occurrence of a coding error. Can I skip that and go on somehow (you know,...
15
by: MLH | last post by:
In this forum, under a different subject title, I have explored the following: I want to examine each procedure in my class modules and standard modules (A97) Since the other subject title was...
2
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! ...
4
by: downwitch | last post by:
Hi all, Wondering if there is a way to determine that a given module is a class module or not. In looping through the AllModules collection, it would be useful for me to do different things...
14
by: Jamey Shuemaker | last post by:
Greetings all, I've been reading for the last couple hours posts on this site and various MS sites about reference libraries and class modules. System: Windows 2K running an A2K db with...
3
by: Roy Tong | last post by:
I maintain a shared database on Access 97. I've just tried converting a test copy of the database to 2003 and it appeared to work OK. That is I got no error messages. However then I look at my...
3
by: MLH | last post by:
An A97 application that sometimes stays open for days at a time may have a form, report, table or query open in design view. What's the simplest code snippet that would determine whether any...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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 ...

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.