我可以从下拉列表中获得突出显示的行吗? [英] Can I get the highlighted row from a dropdown?

查看:69
本文介绍了我可以从下拉列表中获得突出显示的行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个包含类别标题的表单上有一个组合框,一个

将分配给一个记录。


我'' d想向用户显示每个类别的一些注释,以帮助选择

,但是我找不到一种方法来确定突出显示哪一行

。 br />

我尝试使用mouseover事件返回.listindex值

并更新notes文本框,但除非行
$ b,否则返回null通过单击或键入值的开头来选择$ b。


..组合框中不支持屏幕显示,因为我尝试使用它来使用
和访问抱怨。


Google在网络上或新闻组中都没有显示任何内容。


有人有什么建议吗?


-

Bob Quintal


PA是我改变了我的电子邮件地址。

解决方案

Bob Quintal写道:
我在一个包含类别标题的表单上有一个组合框,其中一个将分配给一个记录。

我想表现出来用户对每个类别的一些注意事项有助于选择决定,但我找不到确定突出显示哪一行的方法。

我尝试使用鼠标悬停返回.listindex值的事件
并更新注释文本框,但除非通过单击或键入值的开头选择行
,否则返回null。

。组合框中似乎不支持Seltop,因为我尝试使用它并且Access抱怨。

Google在网络上或新闻组中都没有显示任何内容。

有人有什么建议吗?



我认为列表框会更好地向

用户提供这样的列表......但是......两者都有工作几乎一样。我会创建一个文本框

来保存评论/备注。在OnClick事件中写一些东西,

找到笔记...类似于

Sub Combo_OnClick

Dim rst作为记录集

set rst = Currentdb.Openrecordset(" TableWithNotes",dbopensna pshot)

rst.findfirst" TableID =" &安培; Me.Combo

Me.Text0 = rst!NotesField

rst.close

set rst = Nothing

End Sub


Salad< oi*@vinegar.com>写在

新闻:XU **************** @ newsread2.news.pas.earthli nk.net:

Bob Quintal写道:

我在一个包含
类别标题的表格上有一个组合框,其中一个将分配给一个记录。

我想向用户展示每个类别的一些注释,以帮助选择决定,但我找不到确定哪一行突出显示的方法。

我尝试使用mouseover事件返回.listindex
值并更新notes文本框,但返回null
除非通过单击或键入start <选择行<值得的。

。组合框中不支持.Seltop,因为我尝试使用它并且Access抱怨了。

谷歌没有任何关于网络,或新闻组。

有人有任何建议吗?


我认为列表框会更好地呈现列表l对用户说......但是......两者的工作方式基本相同。我会创建一个文本框来保存评论/备注。在OnClick
事件中写一些找到笔记的东西......类似的东西




由于多种原因,不能使用列表框。即使在那里,

点击事件对我需要做的事情也不起作用。

我确实有一个文本框用于笔记,那部分工作

完美地来自组合框后更新事件。

我实际上把笔记放在组合框的隐藏列中。


它'只是我希望用户在做出选择之前看到笔记,以提示他/她做出正确的选择。

为了做到这一点,我需要确定

组合框下拉列表的哪一行突出显示(反向视频)。


-

Bob Quintal


PA是我改变了我的电子邮件地址。


看看我在我网站上的工具提示课中的表现。不幸的是我的ISP在佛罗里达州是
,现在我的网站已经关闭了。

:-(

-

HTH

Stephen Lebans
http:// www.lebans.com

访问代码,提示和技巧

请只回复新闻组,以便每个人都能受益。

Bob Quintal< rq ****** @ sympatico.ca>写在留言中

news:Xn ***************** ***** @ 207.35.177.135 ...

Salad< oi*@vinegar.com>写在
新闻:XU *********** *****@newsread2.news.pas.earthli nk.net:

Bob Quintal写道:

我有一个组合框包含
类别标题的表单,其中一个将分配给记录。

我想向用户显示每个类别的一些注释以帮助选择决定,但我找不到确定的方法/>哪一行突出显示。

我尝试使用mouseover事件返回.listindex
值并更新notes文本框,但返回null
除非选中该行通过单击或键入值的开头


。组合框中不支持.Seltop,因为我尝试使用它并且Access抱怨。
<谷歌在网上或新闻组中都没有提供任何内容。

是否有人有任何建议?


我认为列表框会更好地呈现像对用户来说......但......两者的工作方式基本相同。我会创建一个文本框来保存评论/备注。在OnClick
事件中写一些找到笔记的东西......类似的东西



由于几个原因,不能使用列表框。即使在那里,点击事件对我需要做的事情也不起作用。
我确实有一个文本框用于笔记,而那部分完全可以从组合框中完成。更新活动。
我实际上将笔记放在组合框的隐藏栏中。

我只是希望用户在做出选择之前看到笔记,提示他/她做出正确的选择。
为了做到这一点,我需要确定突出显示
组合框下拉列的哪一行(反向视频)。
-
Bob Quintal

PA是我改变了我的电子邮件地址。



I have a combobox on a form that contains titles of categories, one
of which is to be assigned to a record.

I''d like to show users some notes on each category to aid in the
selection decision, but I can''t find a way to determine which row
is highlighted.

I tried using the mouseover event to return the .listindex value
and update the notes textbox, but that returns null unless the row
is selected by clicking or typing in the start of the value.

..Seltop appears not supported in the combobox, because I tried
using that and Access complained.

Google turns up nothing on the web, or from the newsgroups.

Does anybody have any suggestions?

--
Bob Quintal

PA is y I''ve altered my email address.

解决方案

Bob Quintal wrote:

I have a combobox on a form that contains titles of categories, one
of which is to be assigned to a record.

I''d like to show users some notes on each category to aid in the
selection decision, but I can''t find a way to determine which row
is highlighted.

I tried using the mouseover event to return the .listindex value
and update the notes textbox, but that returns null unless the row
is selected by clicking or typing in the start of the value.

.Seltop appears not supported in the combobox, because I tried
using that and Access complained.

Google turns up nothing on the web, or from the newsgroups.

Does anybody have any suggestions?


I think a listbox would be better to present a list like that to the
users...but...both work pretty much the same. I would create a textbox
to hold the comments/notes. In the OnClick event write something that
finds the notes...something similar to
Sub Combo_OnClick
Dim rst As Recordset
set rst = Currentdb.Openrecordset("TableWithNotes",dbopensna pshot)
rst.findfirst "TableID = " & Me.Combo
Me.Text0 = rst!NotesField
rst.close
set rst = Nothing
End Sub


Salad <oi*@vinegar.com> wrote in
news:XU****************@newsread2.news.pas.earthli nk.net:

Bob Quintal wrote:

I have a combobox on a form that contains titles of
categories, one of which is to be assigned to a record.

I''d like to show users some notes on each category to aid in
the selection decision, but I can''t find a way to determine
which row is highlighted.

I tried using the mouseover event to return the .listindex
value and update the notes textbox, but that returns null
unless the row is selected by clicking or typing in the start
of the value.

.Seltop appears not supported in the combobox, because I
tried using that and Access complained.

Google turns up nothing on the web, or from the newsgroups.

Does anybody have any suggestions?


I think a listbox would be better to present a list like that
to the users...but...both work pretty much the same. I would
create a textbox to hold the comments/notes. In the OnClick
event write something that finds the notes...something similar



Cannot use a listbox, for several reasons. Even there,
the on click event doesn''t work for what I need to do.
And I do have a textbox for the notes, and that part works
perfectly from the comboboxes After Update events.
I actually put the notes in a hidden column of the combobox.

It''s just that I want the user to see the notes before making a
selection, to prompt him/her to make the right selection.
In order to do that, I need to determine which row of the
combobox dropdown is highlighted (reverse video).

--
Bob Quintal

PA is y I''ve altered my email address.


Look at how I did in the Tooltips class on my site. Unfortunately my ISP is
in Florida and my site is down for now.
:-(
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Bob Quintal" <rq******@sympatico.ca> wrote in message
news:Xn**********************@207.35.177.135...

Salad <oi*@vinegar.com> wrote in
news:XU****************@newsread2.news.pas.earthli nk.net:

Bob Quintal wrote:

I have a combobox on a form that contains titles of
categories, one of which is to be assigned to a record.

I''d like to show users some notes on each category to aid in
the selection decision, but I can''t find a way to determine
which row is highlighted.

I tried using the mouseover event to return the .listindex
value and update the notes textbox, but that returns null
unless the row is selected by clicking or typing in the start
of the value.

.Seltop appears not supported in the combobox, because I
tried using that and Access complained.

Google turns up nothing on the web, or from the newsgroups.

Does anybody have any suggestions?


I think a listbox would be better to present a list like that
to the users...but...both work pretty much the same. I would
create a textbox to hold the comments/notes. In the OnClick
event write something that finds the notes...something similar



Cannot use a listbox, for several reasons. Even there,
the on click event doesn''t work for what I need to do.
And I do have a textbox for the notes, and that part works
perfectly from the comboboxes After Update events.
I actually put the notes in a hidden column of the combobox.

It''s just that I want the user to see the notes before making a
selection, to prompt him/her to make the right selection.
In order to do that, I need to determine which row of the
combobox dropdown is highlighted (reverse video).

--
Bob Quintal

PA is y I''ve altered my email address.



这篇关于我可以从下拉列表中获得突出显示的行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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