how do I default enter last month?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi -

I would like a text box to auto-enter the month previous to today (whenever
the form is opened). I have been experimenting with =month([Today])-1, but
this yields the "Name?" in form view. The format of the field is mmmm yyyy.

Thank you.
 
Morgan said:
Hi -

I would like a text box to auto-enter the month previous to today
(whenever the form is opened). I have been experimenting with
=month([Today])-1, but this yields the "Name?" in form view. The
format of the field is mmmm yyyy.

Thank you.

Set the default value property to =DateAdd("m", -1, Date())
 
Put this in the Default Value --
Format(DateAdd("m",-1,Date()),"mmmm yyyy")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top