Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Date Input mask for month/year

Status
Not open for further replies.

bkf7911

MIS
Mar 20, 2007
83
US
Trying to find a date input mask that will display month year as mmm/yyyy. Example: "Mar-2007". Any help is greatly appreciated.
 
I believe you can display it as you describe with:
Format([YourDate],"mmm-yyyy")

HTH RuralGuy (RG for short) acXP winXP Pro
Please respond to this forum so all may benefit
 
An Input Mask of LLL"-"0000 will do the job you're looking for, but this format is unusual and will probably cause your users a lot of headache unless you have something visible on screen to let them know that this is what you expect.

RuralGuy's idea, used something like this

Code:
Private Sub YourDate_AfterUpdate()
  Me.YourDate = Format([YourDate], "mmm-yyyy")
End Sub

is probably the best approach. Your users can enter the date as they wish and you'll still get the results you want.

Good Luck!

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top