Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!



Access 2003

By dwhiteur ·
I am getting this error The expression on click you entered as the event property setting produced the followig error: procedure declarationdoes not match description of event or procedure having the same name.

Please help I am at a lost, how do I fix this?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

This might give you some kind of answer...

BUG: Procedure Declaration Does Not Match Description of Event
Implementing an interface for a class that has broken compatibility results in the following error during compile time:
Compile Error: Procedure declaration does not match description of event or procedure having the same name

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

Steps to Reproduce Behaviour
Create a new ActiveX DLL project in Visual Basic, Project1.
Select Add Project from the File menu and add a second ActiveX DLL project, Project2.
Add the following code to Project2's default class (Class1):
Public Test As Long

Select Make Project2.dll from the File menu to compile Project2.DLL.
Select Project2 Properties from the Project menu, and choose the Component tab in the dialog box.
In the Version Compatibility frame, select Binary Compatibility. The text field below the option should be pointing to the DLL that was just compiled (Project2.DLL).
Modify the code in Class1 of Project2 to:
Public Test as Integer

Press the F5 key to run the module. A dialog box should appear twice warning about breaking Binary Compatibility. Choose "Preserve Compatibility" each time.
Another dialog will appear asking how to instantiate the DLL. Choose "Wait For Components To Be Created."
Stop the DLL from running by pressing the "Stop" button on the Visual Basic design environment toolbar.
Switch to Project1 DLL, select References from the Project menu and add a reference to Project 2.
Add the following code to Project1's default class (Class1):
Implements Project2.Class1

Under the object drop-down box (upper-left ComboBox in Class1's code window), select Class1. A "Get" property for Class1_Test should be inserted into the Class1 code window.
Under the property drop-down box (upper-right ComboBox in Class1's code window), select "Test [PropertyLet] ." A "Let" property stub for Class1_Test should be inserted into the Class1 code window.
Select Make Project1.dll from the File menu to attempt to compile Project1.DLL. Note that the above mentioned error appears.

Please post back if you have any more problems or questions.

Collapse -

RE: Ms access

by shalini_salhan In reply to Access 2003

YOu need to specify the equirement of the used feature.
If you are taking Hyperlink then need to allocate the path, But if you are creating a function on Button (Say if by pressing a button u want the Annual sale come out)then u need to select that button first,then right click go to properties, data event then use thetools (add, sub, function etc) available there.Then only it will accept.Otherwise it will show the same message. One more thing b sure that the object you selected shud be different all the time.

Collapse -

One other thought

by wcox In reply to RE: Ms access

How about making sure you're patched up to SP3 as well just in case it's a bug....

Related Discussions

Related Forums