
Originally Posted by
jzwp11
If you insist on updating the table then this is what the query would look like. You would have to change the name of the table (Table2) to your actual table name. Note the query below will only work for dates in 2012. If you have other years involved, you will need to replace the 12/31/2011 with the last date of year prior to year of the respective air date. The dateserial() function should help with that.
UPDATE Table2 SET Table2.[DAY OF YEAR] = DateDiff("d",#12/31/2011#,[Air Date]);