Solved

Access Errhandler

Posted on 2002-04-29
8
407 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

691 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