Microsoft Access中计算的字段数据类型

时间:2017-06-14 21:54:10

标签: ms-access

在数据表视图中,我需要将具有超过255个字符的字段的值组合到单个字段(列)中。计算字段会截断结果!

有没有办法用长文本数据类型创建计算字段?如果没有,获得相同结果的最佳替代方案是什么?

1 个答案:

答案 0 :(得分:1)

谢谢大家!

以下是我使用的查询:

SELECT 
    [HISTORY A-J].CONTACTID, 
    [HISTORY A-J].[ClientView Note] 
FROM 
    [HISTORY A-J] 
WHERE 
    (False)

UNION ALL

SELECT 
    [HISTORY A-J].CONTACTID, 
    [HISTORY A-J].[Created On] & " " & [HISTORY A-J].X_TypeName & " " & [HISTORY A-J].Regarding & " " & [HISTORY A-J].Details & " " & [HISTORY A-J].Attachment_Display & " " & [HISTORY A-J].Attachment_Path & " " & [HISTORY A-J].Attachment_FileName AS Result 
FROM 
    [HISTORY A-J];