I have a column titled DateOpen
which lists the date files were opened in d/m/yyyy
format. I want to split the entries in that column into new columns titled MonthOpen
, DayOpen
and YearOpen
while keeping the fields ordered by the primary key column titled FileNumber
. Thanks in advance.
Ms-access – Separating a date column in Access into Month, Day and Year while keeping the new columns ordered by a seperate column(primary key)
ms access
Related Question
- How to Bypass MS Access 2GB File Size Limitation
- Ms-access – How to Prevent Timeslot Overlap
- Ms-access – unable to add data to table because related record is required
- MS Access 365 – Viewing Direct Info About Rented Books in Dropdown List
- Ms-access – Best way to enter data in DB that is spread out date wise
- Ms-access – Split a string into multiple rows and get the count for each of them
- Ms-access – How to select maximum row value using optimal way
- Ms-access – query for showing columns from various tables, grouping and showing calculated field in each row of the result
Best Answer
I assume by day you just want to show the date you have from the day open field. Month(DateOpen) will give you the month number. You weren't specific about what you were looking for in this field, so I assume this is ok. Order By FileNumber ensures you maintain the order of the primary key field.