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

Recommended Answers

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?

Jump to Post

All 2 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.