Solved

Access Errhandler

Posted on 2002-04-29
8
404 Views
Last Modified: 2008-02-01
Hey i want to know more about the Access Errhandler (included with the Office XP Developers' edition)

For example, when I run the errhandler, i get this:

________________________________________________-
Private Sub Command521_Click()

On Error GoTo ErrHandler
Call EnterProc("Form_projects.Command521_Click")

    OpenAccessReport "rptPhoneList"

Cleanexit:
  Exit Sub


ErrHandler:
Call ErrHandler(Err.Number, Err.Description, Form_projects.Command521_Click)
If boolResume = True Then Resume
If boolResumeNext = True Then Resume Next
GoTo Cleanexit

End Sub

_______________________________________

All I _really_ want to do is to get this line:

Call ErrHandler(Err.Number, Err.Description, Form_projects.Command521_Click)

To read like this:

Call ErrHandler(Err.Number, Err.Description, "Form_projects.Command521_Click")

Ive tried the "" $$CURRENTPROCEDURENAME ""

I haven't had enough time to try the

"" & $$CURRENTPROCEDURENAME & ""

_________________________

has anyone else seen this problem??

0
Comment
Question by:aaronkempf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 2

Expert Comment

by:Syed Irtaza Ali
ID: 6979547
ill try to check this one out. I think i might find a generic one.
0
 
LVL 7

Expert Comment

by:Nosterdamus
ID: 6979675
Hi aaronkempf,

I assume that EnterProc is a global function/sub.

In the module where you defined EnterProc, define a Global parameter (ProcName?) like in the following example:

'Begining of the Module
Option explicite....

Public ProcName As String

Public Sub ProcEnter(ProcedureName as String)
    ProcName = ProcedureName
    .
    .
    ' Put here what ever else you need/want to do
    .
    .
End Sub

and now you can execute:
Call ErrHandler(Err.Number,Err.Description,ProcName)

HTH,

Nosterdamus
0
 
LVL 1

Author Comment

by:aaronkempf
ID: 6979682
the issue here is that i am using the auto-errhandler component that comes with Microsoft Office Developer..

and the very end of this-  I am trying to pass this phrase '$$CURRENTPROCEDURENAME ' and i need to include CHR(34) before and after the phrase $$CURRENTPROCEDURENAME

and i cant get either the CHR(34) or the "" to work correctly..

aaron
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 7

Expert Comment

by:Nosterdamus
ID: 6980179
Try:

"""" & $$CURRENTPROCEDURENAME & """"

HTH,

Nosterdamus
0
 
LVL 7

Accepted Solution

by:
Nosterdamus earned 100 total points
ID: 6980181
It's four (4) double-quote (") characters from each side!
0
 
LVL 1

Author Comment

by:aaronkempf
ID: 6980828
thanks man ill give that a shot...

0
 
LVL 1

Author Comment

by:aaronkempf
ID: 6999549
i didnt think that worked..

ill try again (different project now)
0
 
LVL 7

Expert Comment

by:Nosterdamus
ID: 7026394
Hi aaronkempf,

Glad I could help

;-)

Nosterdamus
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question