| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 436 人关注过本帖
标题:[求助]实现不了多选,愁杀了
取消只看楼主 加入收藏
zippoyhl
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2006-5-10
收藏
 问题点数:0 回复次数:0 
[求助]实现不了多选,愁杀了

'''''''检查选择的难度
If Check8.Value = Checked And Check9.Value = Checked And Check10.Value = Checked Then
nandu = "易" & " or 难度='中'" & " or 难度='难'"

ElseIf Check8.Value = Checked And Check9.Value = Checked Then
nandu = "易" & " or 难度='中'"


ElseIf Check8.Value = Checked And Check10.Value = Checked Then
nandu = "易" & " or 难度='难'"


ElseIf Check9.Value = Checked And Check10.Value = Checked Then
nandu = "中" & " or 难度='难'"


ElseIf Check8.Value = Checked Then
nandu = "易"

ElseIf Check9.Value = Checked Then
nandu = "中"

ElseIf Check10.Value = Checked Then
nandu = "难"
Else
MsgBox ""

End If

这是检查的难度,接下来是输出了
'''''''''''填空题
If tkt Then
txtSQL = "select * from 填空题 where 难度='" + nandu + "'"

Set rst = ExecuteSQL(txtSQL)
rst.MoveFirst
Do While Not rst.EOF
Text3.Text = Text3.Text + CStr(i) + "、" + rst!题目 + vbCrLf
total = total + rst!分值
i = i + 1
rst.MoveNext
Loop
Text1.Text = CStr(total)

Else
Text3.Text = "你未选择此类题!"
End If

可是出现错误提示说 With块没设置,哪位高手提示一下

搜索更多相关主题的帖子: 检查 
2006-06-05 20:56
快速回复:[求助]实现不了多选,愁杀了
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.056849 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved