I have a page that updates a database when an individual wants to unsubscribe from our mailings. Each individual is assigned a Unique ID (UID) which I use to find them when I want to update their records. The UID is an eight digit number. I use similar code on dozens of pages without a problem, but for some reason this page doesn’t want to work. The code below should update the database for just the one individual whose UID = Session(“strUID”), but instead it unsubscribes everyone in the database. Does anyone have any idea why this page would be acting this way. Thanks!
[CODE]
Set rsCore = Server.CreateObject(“ADODB.Recordset”)
strSelect = “SELECT Unsubscribed, UnsubscribedDate, UnsubscribedTime FROM tblCore WHERE UID = ” & Session(“strUID”)
rsCore.Open strSelect, connData, , adLockPessimistic
rsCore(“Unsubscribed”) = True
rsCore(“UnsubscribedDate”) = Date
rsCore(“UnsubscribedTime”) = Time
rsCore.Update
rsCore.Close
Set rsCore = Nothing