更新时间:2023-02-11 19:52:07
为解决此问题,我创建了一个基本上用作表的查询.创建其他查询,表单等时,我使用它而不是表格.
To get around this problem, I create a Query that basically functions as the table. I use it instead of the table when creating other queries, forms, etc.
我猜您将[AssignedByes]复制到[RemainingByes],因为[RemainingByes]将从[AssignedByes]的值开始,但是您希望以后可以更改它.
I'm guessing that you copy [AssignedByes] into [RemainingByes], because [RemainingByes] will start off with the value of [AssignedByes], but you want to be able to change it later.
因此,您可以使用称为[xRemaningByes]的计算字段来设置查询.您将在[RemainingByes]中输入更改的值.然后在[xRemainingByes]中设置一个公式,如果有则返回[RemainingByes]的值,否则返回[AssignedByes]的值.
So, you can set up the Query with a calcualted field called [xRemaningByes]. You would enter the changed values in [RemainingByes]. Then set up a formulat in [xRemainingByes] that returns the value of [RemainingByes] if there is one, and it not, it returns the value of [AssignedByes].
[xRemainingByes]:Iif([IsNull([RemainingByes],[AssignedByes],[RemainingByes].
[xRemainingByes]: Iif([IsNull([RemainingByes],[AssignedByes], [RemainingByes].
使用查询而不是表时,将使用[xRemainingByes](它是查询的计算字段),而不是表的字段[RemainingByes].
When you use the Query instead of the Table, you will use [xRemainingByes], which is the Query's calculated field, instead of the Table's field [RemainingByes].
[xRemainingByes]:Iif([IsNull([RemainingByesOverride],[AssignedByes],[RemainingByesOverride]
[xRemainingByes]: Iif([IsNull([RemainingByesOverride],[AssignedByes], [RemainingByesOverride]