What have I done wrong here? I've tried to implement select column1, column2 etc.
In access the sql works, but in ms sql it doesn't. I've added common.asp to the code to make the database connection and deleted the access connection as well.
Item cannot be found in the collection corresponding to the requested name or ordinal
Set RS = server.CreateObject("ADODB.Recordset") SQL = "Select Subject, Start_Date, Topic_ID From tblTopic Where Forum_ID ="&frmnum&" and Priority <1 ORDER BY Topic_ID DESC" rs.Open strSQL, adoCon rs.move idc idc = idc + 1 title = rs("Subject") date1 = rs("Start_Date") topicnum = rs("Topic_ID")
|
Title = rs("subject") and following lines create the error.