Click here to Skip to main content
16,021,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an error:
Too many arguments to 'Public Overridable Overloads Function firstname(dataTable As loginDataSet.staffDataTable) As Integer'.	

Below is my coding and i also highlight the problem. I am using visual studio 2005 , my database name is login and table is staff.
VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsearch.Click
        StaffTableAdapter.firstname(Me.LoginDataSet.staff, search.Text)
    End Sub
Posted
Updated 10-Aug-11 23:13pm
v3

First of all try not to tell us the obvious in your subject line. Try to say something that is more pertinent to the problem. In this case, the problem is that you don't really know how to program. Your method takes one parameter, but you're passing it two. You have a clear error message explaining this to you, so why are you confused ?
 
Share this answer
 
Comments
reid0588 11-Aug-11 7:01am    
you comment is a little harsh! not everyone is as advanced as you. thats why we post on these forums
Tour error message itself saying what is the problem. Your firstname function is having only one argument. But, from the button click event you are passing two parameters. You have to remove search.Text or you have to add one more argument in firstname function.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900