Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default month -1 (text box) (2003 SP2)

    Silly little problem; I want to have a form text box open with last month showing as default. But I can't get it!

    Tried this;
    =Format(Now(),"mm")-1
    and a couple of others, but nothing seems to make any difference.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Default month -1 (text box) (2003 SP2)

    To get the date 1 month before today:

    =DateAdd("m",-1,Date())

    If you only want to show the month, set the Format property of the text box to a custom format.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •