Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

MS Access/ SQL help

Options
  • 05-10-2004 4:41pm
    #1
    Posts: 0


    Hey,

    Not particularly fond of MS Access but I have a table in which a field holds dates in the format dd/mm/yyyy.

    There are a load of entries in this and I was wondering if there were any SQL queries or Access functions that could make editing these (changing the year only, while keeping the rest of the date) easier, rather than trawling through them one by one. The simplest option, Find and Replace, replaces the whole field, maybe there's a way it can be instructed to only change part of a field?

    Any help regarding this matter would be great,
    Thanks for your time


Comments

  • Registered Users Posts: 15,443 ✭✭✭✭bonkey


    Check out DateAdd which should be a function you can use. There's others like Datediff, Datepart, etc. all of which will let you manipulate dates "properly".

    jc


Advertisement