Textbox problem?

Hello guys,

I have a question about textbox, the question is how can I retrive data from a database to display in only one textbox, the data will appear if the user fill in the other textbox for example,company addresswill appear if the user key in thecompany nametextbox. Thank you.

[335 byte] By [Haff] at [2007-12-25]
# 1
That's not really a Textbox problem ;) I suggest reading some of the user docs that come with VB express, particularly the sections about databinding. Then, after you've given it a shot, and you run into an actual problem, there'll be plenty of people who want to help you. But you should really give it a try first, it will make the suggestions and help from others much more valuable.
JohanHiemstra at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

The general idea is that the contents of the textbox are used as a parameter to a SQL select statement which is then used as a datasource for other textbox controls which are bound to the dataset returned by the SQL statement.

I would probably recommend having a search button - which would execute the population of the dataset rather than trying to do it on a text changed event on the textbox as you will get a lot of database traffic every time you type a new character in the textbox.

spotty at 2007-9-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...