MS Access - Select 条记录不存在于同一个 table 中

MS Access - Select records that dont exist in the same table

我有两个 table,第一个输入新申请,第二个输入处理完申请后的评论。我这样设计的原因是为了给记录加上时间戳。

在评论 Table 中,我希望能够 select 在评论 Table 中没有评论的应用程序。所以我在 [02 BP Comments].[BP ID] 中构建了查找查询,如图所示。另外,我将绑定列设置为 2;到 select [01 BP Applications].[BP ID] 但显示 [01 BP Applications].[BP].

Lookup Query

SELECT [01 BP Applications].BP, [01 BP Applications].[BP ID], [02 BP Comments].[BP ID] FROM [01 BP Applications] LEFT JOIN [02 BP Comments] ON [01 BP Applications].[BP ID] = [02 BP Comments].[BP ID] WHERE ((([02 BP Comments].[BP ID]) Is Null));

但是,当我使用注释table并输入一个[01 BP Applications].[BP]值时,我每次都必须刷新以刷新组合框。另外,在我刷新数据库后,字段 [02 BP Comments].[BP ID] 显示绑定值 [01 BP Applications].[BP ID],而不是显示值 [01 BP Applications].[BP].

希望我解释得很好 ;-)

请问,如何使用评论Table而不每次刷新,同时显示显示值,而不是绑定值?

修改 SQL 使 [BP ID] 成为第一列,将其设置为 BoundColumn 并设置 ColumnWidths: 0";1.0";

SELECT [01 BP Applications].[BP ID], [01 BP Applications].[BP], FROM [01 BP Applications] LEFT JOIN [02 BP Comments] ON [01 BP Applications].[BP ID] = [02 BP Comments].[BP ID] WHERE ((([02 BP Comments].[BP ID]) Is Null));

级联组合框 - 具有依赖于动态筛选条件的 RowSource 的组合框 - 在 table 中不起作用,因为需要代码重新查询不能落后于 table 的每个记录的组合框,仅形式。具有查找别名的级联组合框在连续或数据表形式中效果不佳。