I'm working with a Microsoft Access database. In the database, there is a remark field where some data is stored along with a date. I'm trying to extract both the month and the year from this field but I'm having a bit of difficulty.
There is no uniformity in how the dates and remarks are stored. For example, in some column, it will be "REMARK MM/DD/YYYY" while in other columns it may be "MM/DD/YYYY REMARK." The comments are of varying length themselves. This field is stored as a character field.
We now need to work with the months and years (not the date itself) being entered into this column and I'm looking for a way to easily extract this data and put it into two separate columns in the same table, as this data will be compared to a string entered by the user. (i.e., it will generate a query with all data from a particular month and year depending on variables given by the user, so let's say it will find all people that were marked as absent in January 2014 - this part is working for everything except finding people in a specific month and year as it currently returns all absent users entered over the course of time).
I've already made the columns to store the data and simply called them 'Month' and 'Year'. I unfortunately did not design the database (it was built about 10 years ago) and I only have a very basic knowledge of SQL. I'm also using Access 2002, because unfortunately I don't have access to a newer version. Any help you can give me on this topic would be greatly appreciated.