473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compile Error: Procedure declaration does not match description of event...

6
I have two listbox in my Form, one call lstFolders, the other one call lstFiles.

I have the functions below:

Expand|Select|Wrap|Line Numbers
  1. Private Sub lstFolders_DblClick()
  2.      'Call FunctionToListFilesInThisFolder
  3. End Sub
  4.  
  5.  
  6. Private Sub lstFiles_DblClick()
  7.     'Append the filename selected into a textbox
  8. End Sub

When I run my program, it says:

Compile Error:
Procedure declaration does not match description of event or procedure having the same name.


And it highlight at my "Private Sub lstFolders_DblClick() " line

I double check the name of my listbox object and my coding, they are the same. I've also tried "Private Sub lstFolders(Cancel As Integer)" as suggested by some websites, but still it doesn't work.

What's the problem here? Is there anything wrong with my listbox?

Thanks.
Smoi
Feb 8 '07 #1
1 6883
willakawill
1,646 1GB
Hi. Is this code produced when you double click on the list box in design view?
What happens when you select the listbox at the top left of your form code module and then select doubleclick at the top right?

Make sure you have deleted the code you supplied before doing this
Feb 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Donna Sabol | last post by:
Maybe it's not me. I posted a question earlier about not getting a function call right. Well, now I'm trying to write some very simple code, and I can't get ANYTHING to work. It won't even...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: Shailaindra Sharma | last post by:
The Following code generates Error while compiling: Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum,...
0
by: Shailaindra Sharma | last post by:
The Following code generates Error while compiling: Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum,...
1
by: electrixnow | last post by:
Help!, I need to compile this code with static libs so it run on another XP machine that does'nt have MS Studio installed. When I compile now I get an ERROR: 1>------ Rebuild All started:...
5
abouddan
by: abouddan | last post by:
Hi all I am using Access2000 and in some form I'm just adding a command button that close that form on the event OnClick. When running the code and when clicking on that button an error message...
9
by: Finger.Octopus | last post by:
I dont know whats terribly going wrong with this, well I know there's some memory allocation with this but I tried hard to fix it and when it gets fixed it doesn't shows up the desired value, this...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.