|
It's me again, with two syntax errors that I can't for the life of me figure out:
====
The first error:
Error Type:
Microsoft OLE DB Provider for SQL Server
(0x80040E14)
Line 1: Incorrect syntax near ')'.
/1076044226/dbridge/learner.asp, line 53
Code is as follows, with line 53 the last line:
strSQL = "SELECT tblCourseClient.CourseID, tblCourseClient.ClientID, tblClient.ClientCWareTitle, tblClient.ClientNumber "
strSQL = strSQL & "FROM tblCourseClient INNER JOIN tblClient ON tblCourseClient.ClientID = tblClient.ClientID "
strSQL = strSQL & "WHERE ((tblCourseClient.CourseClientID) = " & CCID & ") "
rs.Open strSQL, db
====
The second:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Line 1: Incorrect syntax near ','.
/1076044226/dbridge/learner.asp, line 115
Here's the code, line 115 is the last line (db.Execute(strSQL):
strSQL = "INSERT INTO tblAccess "
strSQL = strSQL & "(MemberID, CourseID, AccessStarted, AccessStatus, AccessType, ClientID, AccessStart, AccessEnd, AccessCompleteBy) "
strSQL = strSQL & "VALUES (" & MRLearnerID & ", " & CourseID & ", 1, 'Active', 0, " & ClientID & ", '" & StartDate & "', '" & EndDate & "', '" & CompleteDate & "') "
db.Execute(strSQL)
======
Any help will be much appreciated!
|