G
Guest
Hello all,
I have a table (tbResults). In this table I have a record with a count that
I want to deduct. I want to deduct if from another record in this table. I
have tried the code below, but get errors.
Here is the data
TbResults:
Area Count
Divert 15 2000
Carousel 200
I want to update Divert 15 to 2000 – 200 = 1800.
UPDATE tbResults SET tbResults.Count = [count]-[expr1]
WHERE ((([expr1]) In (SELECT tbResults.Count FROM tbResults WHERE
(((tbResults.Area)="Carousel")))) AND ((tbResults.Area)="Divert 15"));
I have a table (tbResults). In this table I have a record with a count that
I want to deduct. I want to deduct if from another record in this table. I
have tried the code below, but get errors.
Here is the data
TbResults:
Area Count
Divert 15 2000
Carousel 200
I want to update Divert 15 to 2000 – 200 = 1800.
UPDATE tbResults SET tbResults.Count = [count]-[expr1]
WHERE ((([expr1]) In (SELECT tbResults.Count FROM tbResults WHERE
(((tbResults.Area)="Carousel")))) AND ((tbResults.Area)="Divert 15"));