J
|
Jane 7/20/2007 |
Mike, |
M
|
MikeGinMN author 7/20/2007 |
in the database I have a field called Effective Date and another called Expire Date for both a consent (cons) and Medical (med). An individual medical is good for 3 years and a consent is good for life with a couple of exceptions - 1 turning 18 or a major life change. If a form has expired they can't compete until a new current form is on file, liability reasons. Any medical record will have a effective date and expire date with it, a consent may not have an expire date, but the query, usimg the MAX function brings in the oldest expire date, which may or may not be part of the same record as the effective date. So if I check the expire date to effective date and it is earlier than the effective date I know that the expire date is invalid and just want to "white" it out |
V
|
Vladimir 7/23/2007 |
Hi, if InStr(Request.ServerVariables("SCRIPT_NAME"), "_export")<1 then str = "<table width=100% bgcolor=" if strValue<Data("Effective date") then str = str & "white fgcolor=white" end if str = str & "><tr><td align='center'>" & strValue & "</td></tr></table>" strValue = str end if |