帮我找找这句话的语法错误
If (Request.Form("a&"cstr(i)"&"cstr(j)"")="no" and Rs("a&"cstr(i)"&"cstr(j)"")<Rs("maxnum") and Rs("a&"cstr(i)"&"cstr(j)"")>-1)then
提示这一行缺少')'
问题点数:5、回复次数:7Top
1 楼liuxk(冰山上的心)回复于 2003-05-02 11:01:40 得分 0
("a&"cstr(i)"&"cstr(j)"")
把括号的实际结果写出来,让人家知道你要得到什么?Top
2 楼yanboneck(小小菜)回复于 2003-05-02 11:03:17 得分 0
Rs("a10")...Rs("a71")Top
3 楼yanboneck(小小菜)回复于 2003-05-02 11:04:02 得分 0
For i=1 to 7
For j=0 to 1
If (Request.Form("a&"cstr(i)"&"cstr(j)"")="no" and Rs("a&"cstr(i)"&"cstr(j)"")<Rs("maxnum") and Rs("a&"cstr(i)"&"cstr(j)"")>-1)then
Response.Write"<script> alert('对不起,星期一上午已经有人预约,暂不能取消!');</Script>"
Else If Request.Form("a&"cstr(i)"&"cstr(j)"")="no" and Rs("a&"cstr(i)"&"cstr(j)"")=Rs("maxnum") then
Rs("a&"cstr(i)"&"cstr(j)"")=-1
End If
End If
If Request.Form("a&"cstr(i)"&"cstr(j)"")="yes" and Rs("a&"cstr(i)"&"cstr(j)"")=-1 then
Rs("a&"cstr(i)"&"cstr(j)"")=trim(Request.Form("maxnum"))
Else If Request.Form("a&cstr(i)&cstr(j)")="yes" and Rs("a&"cstr(i)"&"cstr(j)"")>-1 then
Rs("a&"cstr(i)"&"cstr(j)"")=Rs("a&"cstr(i)"&"cstr(j)"")+trim(Request.Form("maxnum"))-Rs("maxnum")
End If
End If
Next
NextTop
4 楼ShiningstarHu(Shining_star)回复于 2003-05-02 11:05:51 得分 0
If (Request.Form("a&"cstr(i)"&"cstr(j)"")="no" and Rs("a&"cstr(i)"&"cstr(j)"")<Rs("maxnum") and Rs("a&"cstr(i)"&"cstr(j)"")>-1)then
改成
If (Request.Form("a" & cstr(i) & cstr(j))="no" and Rs("a" & cstr(i) & cstr(j))<Rs("maxnum") and Rs("a" & cstr(i) & cstr(j))>-1)thenTop
5 楼yanboneck(小小菜)回复于 2003-05-02 11:06:20 得分 0
试一下Top
6 楼liuxk(冰山上的心)回复于 2003-05-02 11:08:16 得分 5
If (Request.Form("a"+cstr(i)+cstr(j))="no" and Rs("a"+cstr(i)+cstr(j))<Rs("maxnum") and Rs("a"+cstr(i)+cstr(j))>-1)then
试试这段
Top
7 楼yanboneck(小小菜)回复于 2003-05-02 11:12:02 得分 0
通了,thank for everyone!Top




