联合查询 MS Access 中的查找问题

LookUp issue in Union query MS Access

我有两个查询,它们具有角色和描述字段。我从这两个查询中创建了一个 Union 查询。

查询 1 来自 table Building1,第二个查询来自 table Building2

但是字段 Role 是由 LookUp 来自 Base table Role 的查询填充的组合,并使用 Bound Column 显示 name

当我执行查询时,我得到的结果是正确的,而当我 运行 union 字段 Role 给我 RoleId 而不是名称

有人可以 tell/explain 为什么它的行为以及解决方法是什么

将 table 角色添加到查询中两次。

然后将他们的Id分别加入到RoleId og Building1和Building2中