D
Duncs
I have a table with 4 fields:
fldAccount - Number
fldTransactionAmt - Number
fldLimitAmt - Number
fldInTolerance - Yes / No
What I want to do, is create a query that will set the fldInTolerance
to 'Yes' if the fldTransactionAmt is within a £20 limit, either up or
down, of the fldLimitAmt...otherwise, set it to 'No'.
So, for a fldLimitAmt value of 130.25, if the fldTransactionAmt is in
the range of 110.25 -> 150.25 inclusively, then it is in tolerance and
so fldInTolerance should be set to 'Yes', otherwise, set it to 'No'.
The SQL that I have for the query at the moment is:
UPDATE tblData SET tblData.fldInTolerance = No
WHERE (((tblData.fldTransactionAmt)>([tblData]![fldLimitAmt]+20) Or
(tblData.fldTransactionAmt)<([tblData]![fldLimitAmt]-20)));
However, it doesn't seem to be working. Can anyone help me, or am I
missing something really simple?
TIA
Duncs
fldAccount - Number
fldTransactionAmt - Number
fldLimitAmt - Number
fldInTolerance - Yes / No
What I want to do, is create a query that will set the fldInTolerance
to 'Yes' if the fldTransactionAmt is within a £20 limit, either up or
down, of the fldLimitAmt...otherwise, set it to 'No'.
So, for a fldLimitAmt value of 130.25, if the fldTransactionAmt is in
the range of 110.25 -> 150.25 inclusively, then it is in tolerance and
so fldInTolerance should be set to 'Yes', otherwise, set it to 'No'.
The SQL that I have for the query at the moment is:
UPDATE tblData SET tblData.fldInTolerance = No
WHERE (((tblData.fldTransactionAmt)>([tblData]![fldLimitAmt]+20) Or
(tblData.fldTransactionAmt)<([tblData]![fldLimitAmt]-20)));
However, it doesn't seem to be working. Can anyone help me, or am I
missing something really simple?
TIA
Duncs