%@ Language="VBScript" %> <% On error resume next Public rsSubscriber Public rsContacts Public cnDB If isEmpty(Session("SubscriberID")) then Session("ErrMsg") = "Your connection has expired" Response.Redirect "Login.asp" elseIf Session("SubscriberID") = 0 then Session("ErrMsg") = "Your connection has expired" Response.Redirect "Login.asp" End if '-- Buttons If Request.Form("btnCondition") = "Condition" then Response.Redirect "Condition.asp" End if If Request.Form("btnMedication") = "Medication" then Response.Redirect "Medication.asp" End if If Request.Form("btnAllergies") = "Allergies /" & Chr(13) & Chr(10) & " Inoculations" then Response.Redirect "Allergies.asp" End if If Request.Form("btnPhysician") = "Physicians /" & Chr(13) & Chr(10) & " Provider" then Response.Redirect "Physician.asp" End if If Request.Form("btnNote") = "Notes" then Response.Redirect "Note.asp" End if If Request.Form("btnPassWord") = "Pass Word" then Response.Redirect "PassWord.asp" End if Session("ErrMsg") = "" Err.Clear Set cnDB = CreateObject("ADODB.Connection") cnDB.ConnectionString = Session("dbConnection") cnDB.Open If Err.number = 0 then Set rsSubscriber = cnDB.Execute("SELECT" & _ " Trim([FirstName]) & ' ' & LTrim([Initial] & ' ') & [LastName] AS Name," & _ " tblSubscriber.*," & _ " Address1," & _ " Address2," & _ " Address3," & _ " City," & _ " State," & _ " Zip," & _ " Phone" & _ " FROM tblSubscriber_Family" & _ " LEFT JOIN tblSubscriber ON tblSubscriber_Family.FamilyID = tblSubscriber.FamilyID" & _ " WHERE tblSubscriber.SubscriberID= " & Session("SubscriberID") & ";") If rsSubscriber.eof then Session("ErrMsg") = "Subscriber Not found" End if End if %>