Results 1 to 2 of 2

Thread: too many arguments to 'public....

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2009
    Posts
    2

    too many arguments to 'public....

    Too many arguments to 'public overridable Overloads Function FillByFirstLast(DataTable as Evaluation_CriteriaDataSet.StudentInfoDataTable) As Integer

    This is the error that is occuring.

    I am attempting to do a search page where I search the Access Database and get the returned values in textboxes.

    I have set up two different queries, one that is searching for emails, and one that is searching for First and Last name.

    I am getting this error twice, once for the first and last name, and the second for the email.



    NumberOfRows1 = Me.StudentInfoTableAdapter.FillByFirstLast(Me.Evaluation_CriteriaDataSet.StudentInfo, StudentInfoFirstName, StudentInfoLastName)

    I am getting the error under StudentInfoFirst name, StudentInfoLastName which i highlighted.

    I have dimmed numberofRows1 as an integer

    StudentInfoLastname and StudentInfoFirstName are both dimmed as strings.

    I can't figure out why I am getting this error, can anyone help?? I can post more code if you need to see it in more detail.

    Thanks,
    Poobmania

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602

    Re: too many arguments to 'public....

    Based on the info in your post your FillByFirstLast takes one parameter while in your function call your are passing in three.

    Me.Evaluation_CriteriaDataSet.StudentInfo
    StudentInfoFirstName
    StudentInfoLastName
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width