i have a checkbox (ckVat) and a textbox (txtvat). what i want to do is that when i check the checkbox, it should pull data from the database into the textbox. the table from which am retrieving the data is called "Vat" so i want it to pull the vat number into the textbox. pls i need help.

Private Sub ckVat_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ckVat.CheckedChanged

    End Sub

you need to write code which connects to DB. If you have created the procedure in Database send the parameted and get the records from DB and assign to variable. You need code or hint?

i have not created any procedure in Database. pls i need code.

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.