Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

increment values by 1

Status
Not open for further replies.

imstillatwork

IS-IT--Management
Sep 26, 2001
1,605
US
I want to increment by 1, this sql posted is incrementing by 2! it worked fine in access. please suggest something!

Maybe i could get some insight as to why this does not work?
UPDATE tblCars
SET carviews=carviews + 1
WHERE CarID=#attributes.CID#

it will work in access / mssql....

THANKS!
 
No, the problem can't be with the update statement, it must lie somewhere else. Maybe you are running the same code twice or ?
 
i've check all the code running everywhere and there is nothing else, if i block only this one query, the number does not change. BTW this is all being done in ColdFusion. its driving me freaking nuts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top