Hi everyone,
I'm pretty new to Access and I was hoping that someone might be able to point me in the right direction. I have a table that contains a bunch of employees and lists out expiration dates for various items they have (badges, passports, etc). My end goal is to have something easy for the company to track items that are expiring soon. I have a form that allows you to enter the number (in days) for how far out you want to check. For example, if you wanted to see everyone with passports expiring in 60 days you could enter 60 and click "run query" and it would show a report with passports expiring within 60 days. That seems pretty straight forward but I would like to have a form where a user can enter how many days out for each of the items (like below) and it would search through all the items but only display the person’s name, item that is about to expire and expiration date. For example, if John Smith had a badge expiring in 30 days and a LOA expiring in 80 days then it would list John Smith with those two items and the dates that they are going to expire. I am not even sure if this is possible because I haven't been able to find anything online on how to do it. The information I am looking for is how to filter and display the results correctly and also how to search for the dates correctly (example of how I am currently doing it is below). I was trying to attach the database here but can't seem to get it to upload. Any help is greatly appreciated.
Item Days out
Passport 60
Visa 60
Badge 60
LOA 90
eCC 90
Med 180
IFAM 180
FACT 180
I am using this criteria to check for the expiring dates: (but it doesn't seem to be working correctly)
Code:
>=Date()+[Forms]![frm_Test]![PriPassportExpirationInput]