首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
登录窗体如图所示。单击"登录"按钮,当用户名及密码正确时则会弹出窗口显示"OK"信息。 下列过程不能完成此功能的是
登录窗体如图所示。单击"登录"按钮,当用户名及密码正确时则会弹出窗口显示"OK"信息。 下列过程不能完成此功能的是
admin
2020-09-01
31
问题
登录窗体如图所示。单击"登录"按钮,当用户名及密码正确时则会弹出窗口显示"OK"信息。
下列过程不能完成此功能的是
选项
A、Private Sub cmdOK_Click()
If txtUser.Value = "zhangs" And txtPW.Value = "123" Then MsgBox "OK"
End if
End Sub
B、Private Sub cmdOK_Click()
If txtUser.Value = "zhangs" Then
If txtPW.Value = "123" Then
MsgBox "OK"
End if
End if
End Sub
C、Private Sub cmdOK_Click()
If txtUser.Value = "zhangs" Then
If txtPW.Value = "123" Then MsgBox "OK"
End if
End Sub
D、Private Sub cmdOK_Click()
If txtUser.Value = "zhangs" and txtPW.Value = "123" Then
MsgBox "OK"
End If
End Sub
答案
A
解析
通常,一行之中有一条语句,而没有语句终结符,但是也可以将两个或者多个语句放在同一行,并用冒号":"隔开,这称之为复合。A选项一行字有两条语句,但未用冒号隔开,所以A选项不能实现。因此,本题应选择A选项。
转载请注明原文地址:https://kaotiyun.com/show/Zucp777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
在考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计好表对象“tStud”、窗体对象“fSys”和报表对象“rStud”。请在此基础上按照以下要求补充“fSys”窗体和“rStud”报表的设计:试根据以下窗体功能和报表输出要求,补充
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”、窗体对象“fEmp”、报表对象“rEmp”和宏对象“mEmp”。同时,给出窗体对象“fEmp”上一个按钮的单击事件代码,试按以下功能要求补充设计:将报表记录数据
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”、窗体对象“fEmp”、报表对象“rEmp”和宏对象“mEmp”。同时,给出窗体对象“fEmp”的若干事件代码,试按以下功能要求补充设计。功能:调整报表对象“rE
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计好窗体对象“fSys”。请在此基础上按照以下要求补充“fSys”窗体的设计:(1)将窗体的边框样式设置为“对话框边框”,取消窗体中的水平和垂直滚动条、记录选择器、导航按钮(导航按钮)、
在考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”、窗体对象“fEmp”、宏对象“mEmp”和报表对象“rEmp”。同时,给出窗体对象“fEmp”的“加载”事件和“预览”及“打印”两个命令按钮的单击事件代码,试按以
下列关于二叉树的叙述中,正确的是
在“职工”表中有姓名、性别和生日等3个字段,要查询所有年龄大于50岁职工的姓名、性别和年龄,正确的SQL命令是
在Access中,通过窗体对表进行操作,不能完成的功能是
在长度为n的顺序表中查找一个元素,假设需要查找的元素一定在表中,并且元素出现在表中每个位置上的可能性是相同的,则在平均情况下需要比较的次数为
设有课程关系模式:R(C#,Cn,T,TA)(其中,C#为课程号,Cn为课程名,T为教师名,Ta为教师地址)并且假定不同课程号可以有相同的课程名,每个课程号下只有一位任课教师,但每位教师可以有多门课程。关系R中对主属性的传递依赖为
随机试题
社会工作者小李接待了前来求助的王女士母子。王女士告诉小李,儿子沉迷网络游戏不爱学习、父母劝他也不听,还与父母顶撞,王女士希望社会工作者小李能帮助她教育小强。小李在确认小强有接受服务的意愿后,与王女士母子签订了服务协议。小李的上述做法属于社会工作通用过程中的
脓尿蛋白定性常为阴性。()
患者,女,10岁半,左下颌第一乳磨牙远中邻殆面充填物完好,松(Ⅱ度),且牙冠透粉红色。最可能的诊断是
水利工程质量事故分为()。
管片的衬砌拼装方式分为()。
下列选项中,应征收资源税的是()。
与成就动机关系最密切的是个体的()。
【2015河北沧州】()是教师最神圣的权利。
以下不属于沟通管理范畴的是(54)。
QuantityA:abQuantityB:0
最新回复
(
0
)