搜索名称和显示 [英] searching name and display

查看:69
本文介绍了搜索名称和显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个表格和两个表.

Form1关于员工的详细信息.当有新员工来时,我会在Form1中输入详细信息.

Form 2与现有员工的工作时间有关.在form 2中,我在组合框中输入了员工姓名.它在组合框下拉列表中显示现有员工姓名.

我需要当我在组合框中键入任何新的员工名称时,它应该在数据库中搜索,即表1(Form 1的表),其中存储了员工的所有详细信息.如果找不到该名称,则应该打开我的form 1 .

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.

推荐答案

您无法在ComboBox中键入任何内容.为此,您需要类似 [
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.


在我看来,这是一项非常简单的任务.编写代码时请尽情享受.
It looks a pretty straightforward task to me. Enjoy yourself while coding it.


您需要调用combo的db KeyPressevent并在db中进行通配符搜索名称

问候
费萨尔
You need to call db KeyPressevent of combo and do the wildcard search for names in db

Regards
Faisal


这篇关于搜索名称和显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆