Table Design to use Date field and only place in Month Year

healey21

Well-known Member
Joined
Dec 22, 2009
Messages
900
I am designing a new table and looking to record the month and year in the field. Example an Exchange rate Month July Year 2011.

I created:
Field ExMonth
DataType Date/Time
Formatted to mmmm yyyy
input mask to 00/00

when I enter date like 03/11 it returns it as November 2011 rather than March 2011 ?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Other than a text box you could use a Date/Time field, place in the format that you want but don't mask it. You should get a date picker then and when the date goes into the Field it will be formatted accordingly.

You can then run queries to ensure you pick the month for the data.

Hope that helps..
 
Upvote 0
If you just enter 3/11 the year will automatically be added and default to the current year.

Can you not just enter a full date?

That would be easy to format, sort/group by etc.
 
Upvote 0
Thank you Norie and Trevor G for your suggestion.

I have made a table and placed in a field monthyear and added a autonumber so that I can keep the order as entered.

Then linked to the Field in the table and added a form so it can be updated.
 
Upvote 0

Forum statistics

Threads
1,224,889
Messages
6,181,608
Members
453,055
Latest member
cope7895

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top