Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 132,673 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,175 people online right now. Registration is fast and FREE... Join Now!




Compiler Error

 
Reply to this topicStart new topic

Compiler Error, Ambigious name detected: cmdFirst_Click

dwd3773
post 4 Sep, 2008 - 12:53 PM
Post #1


D.I.C Head

**
Joined: 9 Feb, 2008
Posts: 101



Thanked 1 times
My Contributions


I am taking my first database programming class and I'm walking through the tutorial in the book, but it doesn't really explain the tutorial real well. So I'm posting here to see if I can get some help. The book uses an example of a corner book store. The database has three tables(Customers, Inventory, Purchases). Everything goes fine until I try to add a switchboard and then I get this error:

Compiler Error
Ambigious name detected: cmdFirst_Click

I don't know why or what is causing this error.
User is offlineProfile CardPM

Go to the top of the page

Jayman
post 4 Sep, 2008 - 01:34 PM
Post #2


Student of Life

Group Icon
Joined: 26 Dec, 2005
Posts: 6,839



Thanked 38 times

Dream Kudos: 500

Expert In: C#, VB.NET, Java

My Contributions


Moved to Visual Basic. This isn't a database question, but instead is related to the code.

Can you post the code for your application?

Use code.gif tags.
User is offlineProfile CardPM

Go to the top of the page

Reverand Dave
post 4 Sep, 2008 - 02:42 PM
Post #3


D.I.C Regular

Group Icon
Joined: 27 Jul, 2008
Posts: 373



Thanked 2 times

Dream Kudos: 50
My Contributions


I suspect that you have a subroutine in your code with that name, but don't actually have a control with that name in your forms, or that command is duplicated within your code. Either of these will typically produce this error. Find where this subroutine is in your code and make sure it matches up to the control, or is not duplicated.
User is offlineProfile CardPM

Go to the top of the page

aneeshd
post 5 Sep, 2008 - 01:20 AM
Post #4


New D.I.C Head

*
Joined: 24 Aug, 2008
Posts: 12


My Contributions


The subroutie name cmdFirst_Click has been used more than one places in your code. No more than one subroutine with same name are allowed. Please search your code for repetition.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:16AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month