Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check number after update inserts date for following friday

Status
Not open for further replies.

wrmedia

Technical User
Jun 6, 2002
19
US
having problems creating form action where when users enter a check number a date field is populated with the date of the following friday or that friday if they input on that day itself

thanx
 
Hi
This may help:
How to determine the First/Last day of a week
faq701-3103
 
Hi, sorrentox,

Something like this in the check number field's After Update event:
Code:
Me![[blue]MyDateField[/blue]] = IIf(Weekday(Date(), vbFriday) = 1, Date(), Date() + (8 - Weekday(Date(), vbFriday)))
HTH,

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top