Default Dates

  • Thread starter Thread starter Secret Squirrel
  • Start date Start date
S

Secret Squirrel

I have two unbound text controls on my form. How can I make them default to
the last full weeks Monday & Friday? For example today is 12/8/08 so I would
want one to be 12/01/08 and the other to be 12/05/08.
 
I have two unbound text controls on my form. How can I make them default to
the last full weeks Monday & Friday? For example today is 12/8/08 so I would
want one to be 12/01/08 and the other to be 12/05/08.

Set the DefaultValue to

=DateAdd("d", -5-Weekday(Date()), Date())
and
=DateAdd("d",-1-Weekday(Date()), Date())

respectively.
 
Thanks John!

John W. Vinson said:
Set the DefaultValue to

=DateAdd("d", -5-Weekday(Date()), Date())
and
=DateAdd("d",-1-Weekday(Date()), Date())

respectively.
 

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

Similar Threads


Back
Top