从列表框中选择数据 [英] Selecting Data from List Box

查看:62
本文介绍了从列表框中选择数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在之前的一些帖子中,我正在询问记录集顺序,感谢大家帮忙解决了问题。随着这一步走开,我遇到了下一步的问题。


所以我在数据库中搜索John Doe,我得到三个结果并将它们列在一个列表框中:

In some previous posts I was inquiring about record set order, thanks everyone for the help it fixed the problem. With that step out of the way I am having an problem with the next step.

So I search the DB for John Doe, and I get three results and have them listed in a Listbox:

展开 | 选择 | Wrap | 行号

推荐答案

假设ID是列表框中的第一列。
Assuming that ID is the first column in your listbox.
展开 | 选择 | Wrap | 行号


酷。


我是保留字还是应该用我的表格名称替换它?因为当我把表格名称放入其中时,它不起作用,但是当我离开它时,它有点工作。


它仍然打开记录到列表上的第一个John Doe ,即使我点击,突出显示,然后选择第三个?
Cool.

Is Me a reserved word or should I replace that with my Form name? Because when I put my form name in it, it does not work, but when I leave Me in it kinda works.

It still opens the record to the first John Doe on the list, even if I click, highlight, and select the third one?



很酷。


我是保留字还是应该用我的表格名称替换?因为当我把表格名称放入其中时,它不起作用,但是当我离开它时,它有点工作。


它仍然打开记录到列表上的第一个John Doe即使我点击,突出显示,然后选择第三个?
Cool.

Is Me a reserved word or should I replace that with my Form name? Because when I put my form name in it, it does not work, but when I leave Me in it kinda works.

It still opens the record to the first John Doe on the list, even if I click, highlight, and select the third one?



是的我是指向调用事件的表单的保留字。


如果在哪里它应该正确打开标准设置正确。检查字段名称和控件名称以及列表框中的位置,以确保所有内容都正确引用。

Yes Me is a reserved word pointing to the form that called the event.

It should open correctly if the Where criteria is set up correctly. Check the field names and control names and position in the listbox to make sure everything is referencing correctly.


这篇关于从列表框中选择数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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