tylerjones
Programmer
I have the following code...
All the fields are text fields in a SQL Server 7 database. As soon as I try to assign the values to a variable I get an exception has occurred error. Does anyone have any ideas why? It doesn't seem to matter whether the field actually contains data or is null... I get the error either way. Thanks.
Code:
sqlTmp = "Select EducationComment, RelocationComment, Resume, Comments FROM dbo.JobSeeker JS WHERE (Downloaded = 0) AND (AgencyID = '" & session("agencyID") & "') AND (JobSeekerID = " & userID & ")"
set tmpRS = server.createobject("adodb.recordset")
tmpRS.ActiveConnection = conn
tmpRS.open sqlTmp, , adopenforwardonly, adLockReadOnly
if not tmpRS.eof then
EducationComment = trim(rs("EducationComment") & "")
RelocationComment = trim(rs("RelocationComment") & "")
ResumeField = trim(rs("Resume") & "")
Comments = trim(rs("Comments") & "")
end if
tmpRS.close
set tmpRS = nothing