Hello!
I was hoping to get a little assistance with a problem I am having.
This is the table I am working with:
tblInspection
InspectID - autonumber field -PK
InspectionType - long integer - either 2 Year, 5 Year, 10 Year, 20 Year... as well as some other irrelevant (for this question) types
InspectionStatus - string- either pending, complete or cancelled
InspectionDate - date for inspection
Because not all inspections need to be done in a certain year, I need some way (I'm pretty sure it's a query of some sort) to return a certain percentage of each type of inspection (100% for 2 year, 80% for 5 year, 60% for 10 year, 10% for anything over that). I would like them to be random, but, in the case of the 20+ year inspections, I would like to inspect a different random 10% each year.
If you could point me in the right direction, I would very much appreciate it!
Thanks!
I was hoping to get a little assistance with a problem I am having.
This is the table I am working with:
tblInspection
InspectID - autonumber field -PK
InspectionType - long integer - either 2 Year, 5 Year, 10 Year, 20 Year... as well as some other irrelevant (for this question) types
InspectionStatus - string- either pending, complete or cancelled
InspectionDate - date for inspection
Because not all inspections need to be done in a certain year, I need some way (I'm pretty sure it's a query of some sort) to return a certain percentage of each type of inspection (100% for 2 year, 80% for 5 year, 60% for 10 year, 10% for anything over that). I would like them to be random, but, in the case of the 20+ year inspections, I would like to inspect a different random 10% each year.
If you could point me in the right direction, I would very much appreciate it!
Thanks!