我需要缩小访问报告中显示的数据范围吗?

I need to narrow down what data pulls through on the Access Report?

如果 RR 后 5-7 天之间,我想在 OFFICE 下显示水费。如果 7 天后显示在 RECEIVED AFTER WELL CLOSED 下,5 天以内的所有内容都会显示在 FIELD.

这是当前使用的代码,尚未更新以反映上述标准:

Entry: IIf(Date()>=[RR]+5,"OFFICE","FIELD")

在公式中嵌入另一个 if 条件:

IIf(Date()>=[RR]+7,"RECEIVED AFTER WELL CLOSED",IIf(Data()>=[RR]+5,"OFFICE","FIELD"))

您可以使用 switch 函数完成此任务:

switch
(
    Date()-RR >  7, "RECEIVED AFTER WELL CLOSED",
    Date()-RR >= 5, "OFFICE",
    True, "FIELD"
)