Click here to Skip to main content
15,907,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have two forms and two tables.

Form1 is regarding the details of employee. When any new employee comes I do entry the details in Form1.

Form 2 is regarding the working hours of existing employee.In form 2 I had put combobox for employee name. It shows existing employee name in combobox drop down list.

I need that when I type any new employee name in combobox then it should search in database i.e table 1 which the table of Form 1 in which all details of employee is stored. If not found the name then my form 1 should open.
Posted
Updated 23-Jun-11 23:57pm
v2
Comments
That's Aragon 24-Jun-11 5:57am    
Edited for grammar and readability.

You can not type any thing in ComboBox. For that you need something like this[^]

There are many alternatives to achieve your requirement. One of them is just add a link to Form1 besides the ComboBox to have a better navigation.
 
Share this answer
 
It looks a pretty straightforward task to me. Enjoy yourself while coding it.
 
Share this answer
 
v2
You need to call db KeyPressevent of combo and do the wildcard search for names in db

Regards
Faisal
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900