Ok, I have kind of a confusing thing.
Every employee has an ID, and a start date.
Some employees have pictures (stored in a folder).
When someone is terminated, the picture does not get erased (as it shoud).
So, I need to run a query that deletes any pictures older than the start date of the employee.
Any help on this? Not sure where to begin. I suppose I should create a query with employees who have pictures. But how do I compare a files date to an entry in a table?
Example table:
Every employee has an ID, and a start date.
Some employees have pictures (stored in a folder).
When someone is terminated, the picture does not get erased (as it shoud).
So, I need to run a query that deletes any pictures older than the start date of the employee.
Any help on this? Not sure where to begin. I suppose I should create a query with employees who have pictures. But how do I compare a files date to an entry in a table?
Example table:
Code:
ID Emp Start File
101 John Smith 5/1/2005 \\file_server\emppic\101.jpg