I have a form in which we enter a date, say for when we receive an order say 21/08/2024. I wish to have the entering of that date trigger a textbox entry for a date that is say, one week more.
I have a form in which we enter a date, say for when we receive an order say 21/08/2024. I wish to have the entering of that date trigger a textbox entry for a date that is say, one week more.
As noted in previous responses, you do not need to store the calculated "DueDate" in a table. It is possible to do so, and there may be specific requirements for doing so, but we can't know that without further details.
In an unbound control on the form, or in a report, you can display the calculated "DueDate" using the syntax in either Post #2, Post #3 or Post #4. I would lean towards the DateAdd method.
That form or report control would have as its control source:
= DateAdd("ww", 1, [receivedDate])
With more specifics about the context, other possibilities might occur to someone.
I have a form in which we enter a date, say for when we receive an order say 21/08/2024. I wish to have the entering of that date trigger a textbox entry for a date that is say, one week more.
So long as your date is stored in a numeric field (normally a DATE), you can use simple addition. If you are storing the date in a STRING field, this becomes a very different problem. So to confirm, this is stored as a number, not a string?