I have a database with dates stored as 2 digits yy, mm, dd in three separate text fields.
I wish to produce a report that will convert the mm field to the alpha equivalent, i.e.August = 08 or May = 05.
I have a database with dates stored as 2 digits yy, mm, dd in three separate text fields.
I wish to produce a report that will convert the mm field to the alpha equivalent, i.e.August = 08 or May = 05.
Two options.
One:
Add a lookup table like:
and join it to your month field.![]()
Please Login or Register to view this content.
Two:
Rebuild your date, then take the Month text:
Cheers,![]()
Please Login or Register to view this content.
Would you like to say thanks? Please click the: "Add Reputation" button, on the grey bar below the post.
If you only want the month name can you not use
Format([monthfield]*30,"mmmm")
Or *29 depending on what start date Access uses.
Yes, nice one Andy!
Thank you Andy! Although I was trying to embed the formatting in the report field, I instead added a field to the query and use that as the control source for the report field.I added this field: startm: Format([startmonth]*30,"mmmm"). Then in the report, where the month would be I changed the control source for the label to be startm.
Thanks again!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks