Add Number to a Date

R

Radhika

I am trying to add a number to a date. I have a field called 'Check Out Date'
and 'Check Out Duration'. I am trying to automatically calculate 'Return
Date' by adding 'Check Out Duration' to 'Check Out Date'. How can I go about
doing this?

Thankyou!
Radhika
 
P

pietlinden

I am trying to add a number to a date. I have a field called 'Check Out Date'
and 'Check Out Duration'. I am trying to automatically calculate 'Return
Date' by adding 'Check Out Duration' to 'Check Out Date'. How can I go about
doing this?

Thankyou!
Radhika

use DateAdd. See help for details, because some of the "size" parts
are a bit misleading at first.
 
B

BruceM

If Check Out Duration is a number of days you could use DateAdd:
In an empty column in query design view:
ReturnDate: DateAdd("d",[CheckOurDuration],[CheckOutDate])

As the Control Source of an unbound text box on a form or report:
=DateAdd("d",[CheckOurDuration],[CheckOutDate])

If you mean something else, please clarify. I would have expted
StayDuration or VisitDuration rather than CheckOutDuration, so maybe I am
not seeing this as you intend.
 
R

Radhika

Thanyou! That was exactly what I needed.

Radhika

BruceM said:
If Check Out Duration is a number of days you could use DateAdd:
In an empty column in query design view:
ReturnDate: DateAdd("d",[CheckOurDuration],[CheckOutDate])

As the Control Source of an unbound text box on a form or report:
=DateAdd("d",[CheckOurDuration],[CheckOutDate])

If you mean something else, please clarify. I would have expted
StayDuration or VisitDuration rather than CheckOutDuration, so maybe I am
not seeing this as you intend.

Radhika said:
I am trying to add a number to a date. I have a field called 'Check Out
Date'
and 'Check Out Duration'. I am trying to automatically calculate 'Return
Date' by adding 'Check Out Duration' to 'Check Out Date'. How can I go
about
doing this?

Thankyou!
Radhika
 

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

Complex query 4
Last Visit information 7
#Error 2
Expression in query 3
Add Days from another table to Date in current table 4
Calculation 1
Date query 4
IIf statement and check boxes 4

Top