R
Raven
I've created an Access dbase and created the forms, etc in ASP using FrontPage. In the edit.asp page I would like to compare two fields (one with a radio button - yes/no) and the other with: <%=FP_FieldHTML(fp_rs,"player1")%> (players 1 through 16) and output the info into either: <%=FP_FieldHTML(fp_rs,"winner1")%> the winners field or <%=FP_FieldHTML(fp_rs,"loser1")%> the loser's field. I have tried (in a variety of formats):
<p class="<%IF inStr=FP_FieldHTML(fp_rs,"player1") AND <%=FP_FieldHTML(fp_rs,"winner1")%> ) THEN <%=FP_FieldHTML(fp_rs,"player1")%> = <%=FP_FieldHTML(fp_rs,"winner1")%> ELSE <%=FP_FieldHTML(fp_rs,"player1")%> = <%=FP_FieldHTML(fp_rs,"loser1")%>"
result is
Microsoft VBScript compilation error '800a03ea'
Syntax error
/LGS_interface/LGS_PLAYERS_REPORT/editor/edit.asp, line 570
inStr=FP_FieldHTML(fp_rs,"player1") AND <%=FP_FieldHTML(fp_rs,"winner1"
Then, there is the problem of where to locate the correct if/else/then statement
Your help would be greatly appreciated
Rave
<p class="<%IF inStr=FP_FieldHTML(fp_rs,"player1") AND <%=FP_FieldHTML(fp_rs,"winner1")%> ) THEN <%=FP_FieldHTML(fp_rs,"player1")%> = <%=FP_FieldHTML(fp_rs,"winner1")%> ELSE <%=FP_FieldHTML(fp_rs,"player1")%> = <%=FP_FieldHTML(fp_rs,"loser1")%>"
result is
Microsoft VBScript compilation error '800a03ea'
Syntax error
/LGS_interface/LGS_PLAYERS_REPORT/editor/edit.asp, line 570
inStr=FP_FieldHTML(fp_rs,"player1") AND <%=FP_FieldHTML(fp_rs,"winner1"
Then, there is the problem of where to locate the correct if/else/then statement
Your help would be greatly appreciated
Rave