Had this problem some years ago and now I experience it again, really weird. If I don't fetch the values in RsDoc in the correct order, the values are blank?!?! The result from below is only the icon, RsDoc("module_icon"), every other value is blank.
'Get startpage FROM db
SQLStmt = "SELECT st_module.module_startpage, st_module.module_startpage_heading, module_startpage_updated, module_startpage_updatedby, st_module.module_icon FROM st_module WHERE module_id = 301
Set RsDoc=dbConn.Execute(SQLStmt)
IF NOT RsDoc.EOF THEN
strStartPage = "<h1><img src=""../_img/"&RsDoc("module_icon")&"""> "&RsDoc("module_startpage_heading")&"</h1>"&vbcr
strStartPage = strStartPage + RsDoc("module_startpage")
strStartPageFooter = "<p class=""desc"">"&mLastModified&": "&RsDoc("module_startpage_updated")&"<br>"&mEditedBy&": "&RsDoc("module_startpage_updatedby")&"</p>"
ELSE
strStartPage = "<h1>"&mStartpage&"</h1>"
END IF
RsDoc.Close
SET RsDoc = nothing
But if I fetch the values in the same order as the SQL Statement, it shows up just fine. Like this:
'Get startpage FROM db
SQLStmt = "SELECT st_module.module_startpage, st_module.module_startpage_heading, module_startpage_updated, module_startpage_updatedby, st_module.module_icon FROM st_module WHERE module_id = "&ModuleId
Set RsDoc=dbConn.Execute(SQLStmt)
IF NOT RsDoc.EOF THEN
module_startpage = RsDoc("module_startpage")
module_startpage_heading = RsDoc("module_startpage_heading")
module_startpage_updated = RsDoc("module_startpage_updated")
module_startpage_updatedby = RsDoc("module_startpage_updatedby")
strStartPage = "<h1><img src=""../_img/"&RsDoc("module_icon")&"""> "&module_startpage_heading&"</h1>"&vbcr
strStartPage = strStartPage + module_startpage
strStartPageFooter = "<p class=""desc"">"&mLastModified&": "&module_startpage_updated&"<br>"&mEditedBy&": "&module_startpage_updatedby&"</p>"
ELSE
strStartPage = "<h1>"&mStartpage&"</h1>"
END IF
RsDoc.Close
SET RsDoc = nothing
Got two installations running on different machines at the moment, on one installation I got the problem above, but not on the other machine. Both are Win 7 with IIS7 and SQL Server 2012.