Hello all,
I have a query with the following code....
SELECT NRTS.[Item], NRTS.[Description], NRTS.[NRTS No], NRTS.[Serial Number], NRTS.[Cal Due], NRTS.[Allocated To], NRTS.[Image]
FROM NRTS
WHERE [Cal Due]=DateAdd("D",30,date());
What I need is when the query returns a record from the "WHERE" Clause (because it wont most of the time) it runs a marco or somehow activates another part of the Db, basically I have items in need of calibration at different points in the year and this query returns records with their calibration date 30 days from Systems date. now when it return a record i need to send an email automatically since the Db will be running on a sever.
What I dont want is for an email to be sent of a blank record.
Thank you for your time.
I have a query with the following code....
SELECT NRTS.[Item], NRTS.[Description], NRTS.[NRTS No], NRTS.[Serial Number], NRTS.[Cal Due], NRTS.[Allocated To], NRTS.[Image]
FROM NRTS
WHERE [Cal Due]=DateAdd("D",30,date());
What I need is when the query returns a record from the "WHERE" Clause (because it wont most of the time) it runs a marco or somehow activates another part of the Db, basically I have items in need of calibration at different points in the year and this query returns records with their calibration date 30 days from Systems date. now when it return a record i need to send an email automatically since the Db will be running on a sever.
What I dont want is for an email to be sent of a blank record.
Thank you for your time.