Hi, I'm having problems with my find button

Private Sub Btnfind_Click(ByVal sender As System.Object, ByVal _
e As System.EventArgs) Handles Btnfind.Click
MainFormTableAdapter.FillByLastName(_6776_BDataSet.MainForm, Txtfind.Text)

I get the error:Too many arguments to 'Public Overridable Overloads Function FillByLastName(dataTable As _6776_BDataSet.MainFormDataTable) As Integer'.

I'm trying to create a find button which allows the user to bring up a customers record after entering thier last name.

Thanks

Joy McClure >Hi, I'm having problems with my find button,

MainFormTableAdapter.FillByLastName(_6776_BDataSet.MainForm, Txtfind.Text)

DataTable instance is needed.

MainFormTableAdapter.FillByLastName(dataTableInstance, Txtfind.Text)

Thank you Adatapost, I'm sure us newbies can be a pain some times, but we've all gotta start somewhere.

I have created my "dataTable" and am progressing on

Cheers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.