This works on my test box with ACCESS as the DB, but I get a 500 error on it when I move it to the SQL box.
It's ASP with Javascript not VBScript.
I'm thinking it has to do with the curser, but I have tried adOpenDynamic as well.
TeacherID is an autoincrement column in the table.
"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001
It's ASP with Javascript not VBScript.
Code:
if (!(Session("TeacherID")>> 0))
{
teacherID = 0;
}
sqlString = "select TeacherID, FirstName, LastName, PhoneNumber, Extension,FaxNumber,emailAddress, SchoolID, Username, Password, Region from teachers where teacherID =" + teacherID;
rsTeacher.Open(sqlString,oConn,adOpenKeyset,adLockOptimistic,adCmdText );
if (teacherID == 0)
{
rsTeacher.AddNew();
}
I'm thinking it has to do with the curser, but I have tried adOpenDynamic as well.
TeacherID is an autoincrement column in the table.
"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001