MS Access:在组合框中显示两列(MS Access: Display two columns in combo

编程入门 行业动态 更新时间:2024-10-25 04:18:49
MS Access:在组合框中显示两列(MS Access: Display two columns in combo-box)

令人尴尬的简单问题,但我无法解决或通过谷歌找到答案。

有两个colums这样的东西

但是当它被选中时它只显示一列,使得信息更难阅读/理解。

尝试更改属性表中的属性(例如列号)但没有明显的效果。

Embarrassingly simple question but I can't work it out or find the answer via google.

Got something like this with two colums

But when selected it only displays one column, making the information much harder to read/ understand.

Tried changing properties in property sheet (such as column number) but to no apparent effect.

最满意答案

这在某种程度上取决于你在做什么,通常这样的事情适合:

SELECT Id, Surname & ", " & Forename from Table

换句话说,绑定列是唯一ID,选择列包括单个列中的姓氏和名字。

编辑基于其他信息:

SELECT [Contact].[CID], [Contact].[Csname] & ", " & [Contact].[Cfname] FROM [Contact] ORDER BY [CID], [Csname], [Cfname];

It depends to a certain extent on what you are doing, often something like this suits:

SELECT Id, Surname & ", " & Forename from Table

In other words, the bound column is a unique ID and the selection column includes both the surname and forename in a single column.

EDIT based on additional information:

SELECT [Contact].[CID], [Contact].[Csname] & ", " & [Contact].[Cfname] FROM [Contact] ORDER BY [CID], [Csname], [Cfname];

更多推荐

本文发布于:2023-08-06 21:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1455678.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组合   框中   Access   MS   columns

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!