i'm new to VB and am hoping for some help.
i want to create a form that has a text box and command button at the top, so that when i enter a number in the textbox it searches a table in the database and then brings up some info from the table.
so for instance: textbox is textbox1, button is cmdFind, table is tbltest
in table test is a list of companies and their details. so when i type 100 in the textbox and hit find, it will bring up the company name, address etc.
i'm guessing this is fairly easy but i cant really find it in a book and so would really like a bit of code that i can copy and then alter to my needs. i think it will be recordset, select, like - etc.
can anyone help please?
i want to create a form that has a text box and command button at the top, so that when i enter a number in the textbox it searches a table in the database and then brings up some info from the table.
so for instance: textbox is textbox1, button is cmdFind, table is tbltest
in table test is a list of companies and their details. so when i type 100 in the textbox and hit find, it will bring up the company name, address etc.
i'm guessing this is fairly easy but i cant really find it in a book and so would really like a bit of code that i can copy and then alter to my needs. i think it will be recordset, select, like - etc.
can anyone help please?
Comment