I have a database that allows an accounts department to reconcile data. I have a table that contains several fields, two of which are date and period. What i want to do is update the period pending on the date - i.e. if the date is 10/05/2005 then the period is to be updated to 5; 10/04/2005 to 4 etc. I can do 12 update queries stating update to n if date is between first day of month and last day but was just wondering if there is a better way.