[英]How can i concatenate two fields in a MS Access 2007 Table and display in a third field?
I want to concatenate 'First Name' and 'Last Name' and then display into the 'Customer Name' field. 我要连接“名字”和“姓氏”,然后显示到“客户名称”字段中。
I am using MS Access 2007. 我正在使用MS Access 2007。
I explored on this, I got to know that we can write a VB Script as below on the Customer Name column name itself: 我对此进行了探索,我知道我们可以在“客户名称”列名称本身上编写如下的VB脚本:
Customer Name: [First Name]& " " &[Last Name]
but it gives error 但它给出了错误
In MS Access 2013, there is an option of 'Calculated Field' to do this easily. 在MS Access 2013中,可以使用“计算字段”选项轻松完成此操作。 I am not sure how to do this in 2007. 我不确定2007年该怎么做。
Please suggest. 请提出建议。
-Write a Query to return all fields from the table -编写查询以返回表中的所有字段
-use Customer Name: [First Name]& " " &[Last Name]
as formula -使用Customer Name: [First Name]& " " &[Last Name]
作为公式
-use the query instead fo the table as source for further manipulations -使用查询代替表作为进一步操作的源
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.