A family of Microsoft relational database management systems designed for ease of use.
This query would have an additional column with this in the Field area:
DaysSinceLastCheckin: DateDiff("d",[Checked In Date],Date())
This names the column DaysSinceLastCheckin. Note how unlike MSFT I don't use spaces and other funny characters, which might cause notational difficulties.
Then I call the DateDiff function. Look it up in the help file and you will notice it takes 3 arguments:
"d" says we want to return the difference in days (not in years, or seconds, etc.)
[Checked In Date] is your field in the Transactions table
Date() is a VBA function that returns today's date.
Thanks for the advice Tom. It worked perfectly
I do have one further question though. I realised afterwards that the query would give the results of all items, regardless of whether they are checked out, available, or have been checked out multiple times. So with a library of approximately 120 items, I was receiving over 150 results from the query. Is there a way to filter out all the unavailable items and show only the last return date?
Hopefully I'm not asking too much. I tried to experiment a little to find the answer, but I couldn't do it. Thanks for your help and your patience with assisting me