search button

  • 12 years ago

    Hi, im doing a project using and i want to use a search button to find say a suppliername. i have a table called supplier and instead of using a combobox with the primary key as the supplierid i want to use a search button and search for there name if thats possible. The combobox fills all the text box with the details of that supplier. an example of the cvode i am using to fill these boxes are below. any help would be greatful. Smiley Face [:)]

    Public Sub FillSupplierDetails()

    'declare data row

    Dim objRow As DataRow

    objRow = objDataSet.Tables(


    'link data between database and form

    txtsuppliername.Text = objRow.Item(


    txtaddress.Text = objRow.Item(


    txtaddress2.Text = objRow.Item(


    txtaddress3.Text = objRow.Item(


    txtcontact.Text = objRow.Item(


    txtemail.Text = objRow.Item(


    txtamountdue.Text = objRow.Item(




    End Sub

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only 3 numbers of interest to a computer scientist: 1, 0 and infinity”