组合框 [英] ComboBox

查看:83
本文介绍了组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友们再次问好,


我的问题是:


在组合框中,基于具有重复值的表格。

我如何定义Combo -Box,这样她就会为每个

值显示一个例子。

例如:


互联网站点名称,网站主题

A技术

B技术

C一般

D一般

E乐趣

F乐趣

组合框将显示:技术,一般,乐趣。


我试着去ComboBox背后的查询来做一个分组来做

动作,

但是因为ComboBox需要两个字段:主键和

主题字段,

它没用。


请帮帮我,


Ego

Hello again my friends,

My question is :

In a Combo - Box , based on a table with duplicate values.
How can I define the Combo -Box so she will show one example for each
value .
For example :

Internet site name , Subject of the internet site
A Technical
B Technical
C General
D General
E Fun
F Fun
The combo box will show : Technical, General, Fun.

I tried to go to the Query behind the ComboBox at to do A Group By
action,
But because the ComboBox required two fields : The primary key and the
subject field ,
It didn''t work.

Please help me,

Ego

推荐答案

" ego" <き***** @ hotmail.com>在消息中写道

news:11 ********************* @ o13g2000cwo.googlegro ups.com ...
"ego" <ki*****@hotmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
再次问好我的朋友们,

我的问题是:

在组合框中,基于具有重复值的表格。
如何定义Combo -Box所以她将为每个
值显示一个示例。
Hello again my friends,

My question is :

In a Combo - Box , based on a table with duplicate values.
How can I define the Combo -Box so she will show one example for each
value .




在查询中使用SELECT DISTINCT。 不是空的可能也很有用。


问候,

基思。
www.keithwilby.com


" ego" <き***** @ hotmail.com>在消息中写道

news:11 ********************* @ o13g2000cwo.googlegro ups.com ...
"ego" <ki*****@hotmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
再次问好我的朋友们,

我的问题是:

在组合框中,基于具有重复值的表格。
如何定义Combo -Box所以她将为每个
值显示一个例子。
例如:

互联网站点名称,互联网站点的主题
技术
B技术
C一般
D一般
E乐趣
F乐趣

组合框将显示:技术,一般,乐趣。 />
我试着去ComboBox背后的查询来做一个分组动作,
但是因为ComboBox需要两个字段: ary key和
主题领域,
它没有用。

请帮助我,

Ego
Hello again my friends,

My question is :

In a Combo - Box , based on a table with duplicate values.
How can I define the Combo -Box so she will show one example for each
value .
For example :

Internet site name , Subject of the internet site
A Technical
B Technical
C General
D General
E Fun
F Fun
The combo box will show : Technical, General, Fun.

I tried to go to the Query behind the ComboBox at to do A Group By
action,
But because the ComboBox required two fields : The primary key and the
subject field ,
It didn''t work.

Please help me,

Ego


Group By听起来是个好主意,但如果组合框确实需要两个

字段,匹配条目应该是什么?'Fun''? E或F?

如果组合框不需要两列,则将列数更改为

one并使用组通过解决方案。


Group By sounds like a good idea, but if the combobox really requires two
fields what should the matching entry be for ''Fun''? ''E'' or ''F''?
If the combobox doesn''t need two columns, then change the column count to
one and use the Group By solution.


" Keith" <柯********* @ baeAWAYWITHITsystems.com>在消息中写道

news:42 ******** @ glkas0286.greenlnk.net ...
"Keith" <ke*********@baeAWAYWITHITsystems.com> wrote in message
news:42********@glkas0286.greenlnk.net...
" ego" <き***** @ hotmail.com>在消息中写道
新闻:11 ********************* @ o13g2000cwo.googlegro ups.com ...
"ego" <ki*****@hotmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
你好再次,我的朋友,

我的问题是:

在组合框中,基于具有重复值的表。
如何定义组合框-Box所以她将为每个
值显示一个示例。
Hello again my friends,

My question is :

In a Combo - Box , based on a table with duplicate values.
How can I define the Combo -Box so she will show one example for each
value .



在查询中使用SELECT DISTINCT。 不是空的也可能有用。



Use SELECT DISTINCT in your query. "Is Not Null" might be useful too.



对不起,只是重新阅读你的帖子,这对你给出的例子不起作用。


Sorry, just re-read your post and this won''t work on the example you gave.


这篇关于组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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