SQLFilter: Advancing Dates
July 17, 2006 7:37 AM Subscribe
How can I increment a value directly using SQL?
I have several tables containing dates, and I want to be able to advance these dates by x days. Can I do an UPDATE in SQL which will find the date in question and add on x number of days? Having said that though, the database is in Access - would it be easier to use something within Access to do this?
posted by samstarling to computers & internet (3 answers total)
UPDATE TABLENAME SET datefield = DATEADD(d, x, datefield)
... where X is the number of days you want to add to the date.
posted by Doofus Magoo at 7:44 AM on July 17, 2006