计算机二级accessch02VBA实例-3.pptVIP

  • 11
  • 0
  • 约4.5千字
  • 约 23页
  • 2017-07-27 发布于河南
  • 举报
计算机二级accessch02VBA实例-3

综合题范例 严格遵守:程序的执行过程是逐行逐行,并且遇到相应的语法(如循环、选择、过程等)就做相应的方向调整 代码行数越多的程序,可能计算越简单 牢记相关函数 在窗体上添加一个命令按钮(名为Command1),然后编写如下程序: Function m(x as integer, y as integer) as integer M = IIf(xy,x,y) End function Private Sub Command1_Click() Dim a as integer, b as integer a = 5 b = 10 MsgBox m(a,b) End Sub 打开窗体运行后,单击命令按钮,消息框的输出结果为 。 假定有如下的Sub过程: ?????Sub sfun(x?? As?? Single,y?? As??? Single) ????????? t=x ????????? x=t/y ????????? y=t Mod y ??????? End Sub ?在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程: ??????? Private Sub Command1_Click() ????????? Dim

文档评论(0)

1亿VIP精品文档

相关文档