Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

let main program wait for input 2

Status
Not open for further replies.

FatEric

IS-IT--Management
Nov 8, 2007
58
BE
Hi guys,

I recently started programming in vb.net and I need a solution for this matter. In my program I get some info from a sql-server database. The user has to give in a name, and then I read the server and get all records containing that name (via "LIKE"). But when I get two or more records, I want to show a new form with these records so the user can select one. With the selected info I want to look up some other info. I can show the new form with the data, I can get the data from it to get the extra info, but I want the main prog to wait for an answer from the new form. Is this possible on a very simple manner?

Thanks in advance
For further info, let me know.

FatEric
 
Thanks Chrissie1!

Another question for this one. Now I want to give back the selected values from the second form to the first one. I made a public function in the first form, but I can't seem to call it from the second form. Do I have to give the first form as a parameter (me) to the second form?

Thanks, FatEric
 
there is a whole faq on this kind of thing

faq796-5773

But you can only give me one star ;-)

Christiaan Baes
Belgium

My Blog
 
Thanks Chrissie,

I think I found the solution.

Cheers, FatEric
 
Code:
SELECT
    TOP 1 Handle
FROM
   tblTMOW

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top