Hello,
I am current designing a form the has textbox called "comments_timestamp" which is has a default value of "=Now()"
I have another textbox on the same form that is called "Weekending Date"
I would like to populate the "Weekending Date" textbox with the weekending date based on the "comments_timestamp" textbox.
Currently, I have tried to use the following in the "Weekending Date" textbox control source property.
Based on the code above.....
The "comments_timestamp" textbox is populated with the 11/27/2010 and the "Weekending Date" textbox populates with 12/3/2010. When it should populate with 11/28/2010.
Side Note ...
the week begins Monday and ends on Sunday.....
Any suggestions ?
Thank you in advance
Arv
I am current designing a form the has textbox called "comments_timestamp" which is has a default value of "=Now()"
I have another textbox on the same form that is called "Weekending Date"
I would like to populate the "Weekending Date" textbox with the weekending date based on the "comments_timestamp" textbox.
Currently, I have tried to use the following in the "Weekending Date" textbox control source property.
Code:
=([comments_timestamp])+7-Weekday([comments_timestamp],7)
Based on the code above.....
The "comments_timestamp" textbox is populated with the 11/27/2010 and the "Weekending Date" textbox populates with 12/3/2010. When it should populate with 11/28/2010.
Side Note ...
the week begins Monday and ends on Sunday.....
Any suggestions ?
Thank you in advance
Arv