Hi,
I have this update query.
UPDATE A INNER JOIN B ON (A.[field1] = B.field1) AND (A.field2 = B.field2)
B.field3 = B.[field3]+(B.[field3]-A.[field3]), B.field4 = B.[field4]+(B.[field3]-A.[field3]), B.field3 = A.[field3];
But I want it to execute after it satisfied this logical expression for each record in the A.field3 and B.field3.
Its like this.
IF A.field3 < B.field3 THEN execute the codes above.
Example:
Table A------------Table B
Field3--------------Field3
50-----------------100 >>>>>>>>>>>>> TRUE then EXECUTE the code.
100----------------20 >>>>>>>>>>>>>> FALSE then dont execute.
0------------------100 >>>>>>>>>>>>> TRUE then EXECUTE the code.
500----------------1000 >>>>>>>>>>>> TRUE then EXECUTE the code.
... -----------------.... and so on!
How to add a code that will execute the codes above in each record? Just one click then all will be updated.
Thank you,
Execute the Update Code...
I have this update query.
UPDATE A INNER JOIN B ON (A.[field1] = B.field1) AND (A.field2 = B.field2)
B.field3 = B.[field3]+(B.[field3]-A.[field3]), B.field4 = B.[field4]+(B.[field3]-A.[field3]), B.field3 = A.[field3];
But I want it to execute after it satisfied this logical expression for each record in the A.field3 and B.field3.
Its like this.
IF A.field3 < B.field3 THEN execute the codes above.
Example:
Table A------------Table B
Field3--------------Field3
50-----------------100 >>>>>>>>>>>>> TRUE then EXECUTE the code.
100----------------20 >>>>>>>>>>>>>> FALSE then dont execute.
0------------------100 >>>>>>>>>>>>> TRUE then EXECUTE the code.
500----------------1000 >>>>>>>>>>>> TRUE then EXECUTE the code.
... -----------------.... and so on!
How to add a code that will execute the codes above in each record? Just one click then all will be updated.
Thank you,
Execute the Update Code...