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!

datetime stamp

Status
Not open for further replies.

jldavis5

IS-IT--Management
Jan 22, 2002
9
US
Would anyone know how I could datetime stamp a record in a database results page eveytime the record is updated. I'm using SQL server and tried to do this by adding a colum in the table I'm editing that has the formula getdate() but updates every row when I try and edit one. Any ideas would be helpfull
 
add the column to the database, and then just tack on the value in the INSERT statement...

INSERT INTO table (val1, timeStamp) VALUES ('myVal',getDate());

:)
paul
penny1.gif
penny1.gif
 
add new column as paul said.
use: "UPDATE myTable SET val1='myValue',updateDate=getDate()
WHERE id (unique identifier)=" & recID
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top