Forum Moderators: open
and if you click on anything under "first name" "level" "class" or "race" it gives this error.
Microsoft JET Database Engine error '80040e14'
Syntax error in string in query expression '[CharID]='2;'.
/forum/custom/Characters.asp, line 59
The char Id # changes of course depending on which name you click.
and this is the code in question that i believe is causing the problem.
<td class="messagecellbody<%=sClass%>" valign=top onmouseover="this.style.cursor = 'hand'" onmouseout="this.style.cursor = 'default'" onclick="window.location='Characters.asp?action=CharInfo&sCharID=<%=CharID%>'">
<%=rsMaster("Char_Level")%>
if anyone could point me in the right direction on how to fix this I would be forever in your debt.
""Syntax error in string in query expression '[CharID]='1;'. ""
So when you're building your SQL statement an apostrophe (') is getting put in wrong.
[CharID]='1' is how it should look. Take a look at where your ; is being put in. Switch around the ;' to '; and you should be fine!