Field= Todays Date - CheckOutDate

K

Katayon

Hi,

The database is a software library.
I have a field in a database called OverDue.
I would like this field to calculate the OverDue date,
i.e. today's date subtracted by the checkout date.

Can someone please let me know how to do this as soon as
possible. I really appreciate it.

Thanks,
Katayon
 
J

John Vinson

Hi,

The database is a software library.
I have a field in a database called OverDue.
I would like this field to calculate the OverDue date,
i.e. today's date subtracted by the checkout date.

Can someone please let me know how to do this as soon as
possible. I really appreciate it.

Well... DON'T.

If you put a value in this field today, IT WILL BE WRONG TOMORROW.
Guaranteed!

Instead, calculate it on the fly. Create a Query based on your table,
and in a vacant Field cell type

OverDue: DateDiff("d", [CheckOutDate], Date())

to calculate the number of days since the checkout date. Subtract 14
or however many days before the item becomes overdue.

This calculated field can be used for searching, for sorting,
displayed on a form or report - the only thing you can't do is edit
it.
 

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

Top