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!

Incrementing the value of a field

Status
Not open for further replies.

shauns1

Programmer
Oct 21, 2005
53
AU
Hi

I have a table of PDF Files that can be downloaded from the server. I have a field named downloads that will store the number of times the file is downloaded.

At the moment, I retreive the value of downloads, increment it within my web page and insert the new value back into the database.

Is there a way I can increment the value within one sql statement? I'm using Access.

Many thanks

Shaun
 
UPDATE tblName SET increment=increment+1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top