Current weeks Friday

oxicottin

Learning by pecking away....
Local time
Today, 09:23
Joined
Jun 26, 2007
Messages
878
Hello, I need to have my forms textbox to have the current weeks Fridays date as a default value. In my formula what am I missing it gives me #Name?.

=DateAdd("d", 8 - Weekday(Date(), vbFriday), Date())
 
You can't use a VBA constant in a form. Try 6 there.
 
NextFriday = YourDate +7 - weekday(YourDate)- 1
 

Users who are viewing this thread

Back
Top Bottom