如何在组合框中插入不同的值 [英] How do i insert distinct values into my combobox

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

问题描述

我只想问问我是否可以将查询创建的不同值插入到组合框中?我有一个员工数据库,其中包含 100 条记录和 5 个不同的部门.

I just want to ask if how could i insert distinct values created by my query into a combobox?. I have an employee database that consist of 100 records and 5 different departments.

推荐答案

对于组合框的 RowSource,只需在 SQL 字符串中添加单词DISTINCT"即可.

For the RowSource of your combo box, just add the word "DISTINCT" to your SQL string.

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

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