I assume you have birthdates in a table somewhere? Are these values some kind of date data type?(I would use a smallDateTime) If so, place the following either in an include file or the head of every page you want the alert to be triggered (include file better if you intend to use it in more than one location):
<%
sql = "SELECT id FROM tblName WHERE birthDate = " & (date()+3) & ";"
getInfo = conn.execute(sql)
If NOT getInfo.EoF then
'we have records. Break ASP, start
JS and fire new window function
%>
<script>
var newWin
newWin = window.open('birtdayAlert.asp','windowName',"width =300,height=300,top=100,left=100,scrollbars=1,resi zable=1,toolbar=0,location=0,status=0,menubar=0");
</script>
<%
ELSE
'no bodys birthday is in three days time, do nothing
END IF
%>
NOTE: Appart from the connection string, query and dimming variables that will be cut n paste code. Before you run it create a page called birtdayAlert.asp (as mentioned in the newWindow syntax) place the content you would like in the new window on this page. There are two ways to identify the persons who have a bDay in three days time on this page:
1..run the query again on birtdayAlert.asp (easier)
or
2..After the line getInfo = conn.execute(sql) loop thru records making a commer delimited string appending it as a query string to the destination page location EG 'birtdayAlert.asp?ids=<%= stringOfIds %>'
Have a fine NY
Wind is your friend
Matt