I'm going to make a bunch of assumptions because you haven't been real specific with what you're describing. (The application is the complaint reporting application?)
I'm assuming these complaints are getting stored as table entries in the database, and you want email notification when a particular complaint "expires". So you save the complaint when it's created and tag it with an expiration datetime based on its level (Now + x minutes).
The best approach is to create an MS-SQL DTS job that pulls all the expired records and handles the emailing. You could right some of it in
VB/Script within the DTS job, or have the DTS job fire off something that handles it. Schedule the job to run every minute.
Alternatively, you could write a regular console application (in
VB if you so choose) that pulls the applicable data and handles the emailing. Use the operating system scheduler for scheduling.
Peter
------------------------------------------------------
Work smarter, not harder.