J
Jens Burup
Hi Ng
I have been through many issues in this group but did not find something to
help me, so please...
I have a table (Price list) with 20 columns and 80 rows, and wants to update
these all prices with the same factor.
This is not a problem for me, but....
some of cells contain either an 0 or 1 for which I use as a flag.
I don't want the 1 to be updated (Zero are not a problem -
)
This is how I did:
UPDATE Mtable
SET Mtable, Mtable.Price1 = [Mtable].[price1]*1.7..........Mtable,
Mtable.Price20 = [Mtable].[price20]*1.7
WHERE
Mtable.Price1>1 and ........ Mtable.Price20>1 I also tryed with OR
When I use this SQL String no updates takes place.
When I remove the WHERE, clause all prices are updated, but my 1 (flag)
became a 2
How do I avoid values below 2 not to be updated?
Any help would be appreciated
Regards
Jens Burup
I have been through many issues in this group but did not find something to
help me, so please...
I have a table (Price list) with 20 columns and 80 rows, and wants to update
these all prices with the same factor.
This is not a problem for me, but....
some of cells contain either an 0 or 1 for which I use as a flag.
I don't want the 1 to be updated (Zero are not a problem -

This is how I did:
UPDATE Mtable
SET Mtable, Mtable.Price1 = [Mtable].[price1]*1.7..........Mtable,
Mtable.Price20 = [Mtable].[price20]*1.7
WHERE
Mtable.Price1>1 and ........ Mtable.Price20>1 I also tryed with OR
When I use this SQL String no updates takes place.
When I remove the WHERE, clause all prices are updated, but my 1 (flag)
became a 2
How do I avoid values below 2 not to be updated?
Any help would be appreciated
Regards
Jens Burup