题目内容

数据库的“职工基本情况表”有“姓名”和“职称”等字段,要分别统计教授、副教授和其他人员的数量。请在空白处填入适当语句,使程序可以完成指定的功能。
Private Sub command5_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim zc As DAO.Field
Dim Count 1 As Integer,Count2 As Integer,Count3 As Integer
Sett db=CurrentDb()
Set rs=db.OpenRecordset(“职工基本情况表”)
Set zc=rs.Fields(“职称”)
Count1=0:Count2=0:Count3=0
Do While Not______
Select Case zc
Case Is=“教授”
Count1=Count1+1
Case Is=“副教授”
Count2=Count2+1
Case Else
Count3=Count3+1
End Select
______
Loop
rs.Close
se rs=Nothing
Set db=Nothing
MsgBox“教授:”&Count 1&“,副教授:”&Count2&“,其他:”&Count 3
End Sub

查看答案
更多问题

震时可取的行为有,滞留在床炕上、躲在房梁下、躲在窗户边等。()

听力原文:What is one thing mentioned as an example of a private matter?
What is one thing mentioned as an example of a private matter?
______are mentioned as an example of private matters.

一个地区,当小震很多时,一定会跟着发生一个大地震。()

我国的地震监测分为测震监测和前兆监测。()

答案查题题库