I have an unbound textbox in a form that I want to autopopulate with the current month (text). I've tried setting the default value to Date(M), Now(M), =Format(Month) etc. Any suggestions? Thanks.
I have an unbound textbox in a form that I want to autopopulate with the current month (text). I've tried setting the default value to Date(M), Now(M), =Format(Month) etc. Any suggestions? Thanks.
Look up MonthName in VBA help.
I tried to put =
=MonthName(month[, abbreviate]) in the "Default Value" field but it still
displays #Error. I can put in =Date(), =Time(), =Now() and all of these work. Do I have to create an "Event" Code procedure...like..On Dirty...?
If so, how would that read? I'm just learning VBA.
Thanks!
This is an unbound control right? Just make it the ControlSource:
=MonthName(Month(Date()))
Try this as the Control Source
=Month(Date())
Figured it out. In the "Default Value" field =Format(Date(),"mmmm")Access 2003 didn't know the common expression Month.
Not sure your comment is correct.
So I would guess you are ready to follow the link in my sig and mark this thread as Solved.