Donate SIGN UP

Yet another access question

Avatar Image
aceizace | 10:30 Tue 24th Feb 2004 | Technology
2 Answers
OK, i vow this will be my last. I have a table that has 'date loaned' and 'date due back'. 'Date loaned' has a default value of Date() so that when you 'loan' an item it has that day's date in, and you can type in when it needs to be back. How will i make something so that it will tell me when an item is overdue? It can be a query that when run it shows all the overdue items, or it could just be another field that has some sort of formula that works out whether it is overdue or not. Whatever will work! Thanks.
Gravatar

Answers

1 to 2 of 2rss feed

Best Answer

No best answer has yet been selected by aceizace. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Presuming that you are using a form for data entry the simplest way to do this would be as follows.
Create a text box on your form called for example 'Days Remaining', make it's data type a number.
Set the control source of this text box to be whatever your date due back field is called minus your date loaned field. Like this:

=[Date Due Back]-[Date Loaned].

The box will then countdown the days remaining for each loan. You can then set up some sort ofr message box to trigger when a loan reaches 0 days.
Question Author
How would i make the message box that comes up when an item is less than or equal to 0 in the form? Thanks

1 to 2 of 2rss feed

Do you know the answer?

Yet another access question

Answer Question >>