第一范文网 - 专业文章范例文档资料分享平台

vb课程设计说明书格式

来源:用户分享 时间:2025/5/24 2:32:10 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

山东科技大学学生课程设计

Printer.Line (0, 250)-(1500, 250)

Printer.Print lb10.Caption + jobi.Caption + lb11.Caption + addri.Caption Printer.Line (0, 300)-(1500, 300)

Printer.Print lb12.Caption + edui.Caption + lb13.Caption + nati.Caption Printer.EndDoc ErrMsg:

If Err.Number <> 0 Then

MsgBox CStr(Err.Number) + Err.Description, vbOKOnly + vbCritical, \错误提示\

Exit Sub End If End Sub

Private Sub Form_Load() Dim i As Integer

On Error GoTo Err

db = \Security=SSPI;Persist Security Info=False;Initial Catalog=mstaff;DataSource=.\ conn.CursorLocation = adUseClient conn.Open db Exit Sub Err:

MsgBox Err.Number Unload Me End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) mainfrm.Enabled = True Set rst = Nothing conn.Close End Sub

Private Sub jsbt_Click() If csnoi.Text = \

MsgBox \请输入员工编号。\

45

山东科技大学学生课程设计

Exit Sub End If

If rst.State <> adStateClosed Then rst.Close

sSql = \rst.Open sSql, conn, adOpenStatic, adLockBatchOptimistic If rst.EOF Then

MsgBox \用户信息不存在,请查证员工编号。\ Exit Sub End If

While Not rst.EOF

snoi.Caption = rst.Fields(\

snamei.Caption = rst.Fields(\ genderi.Caption = rst.Fields(\ depti.Caption = rst.Fields(\ jobi.Caption = rst.Fields(\ birthi.Caption = rst.Fields(\ phonei.Caption = rst.Fields(\ addri.Caption = rst.Fields(\ edui.Caption = rst.Fields(\ nati.Caption = rst.Fields(\

majori.Caption = rst.Fields(\ emaili.Caption = rst.Fields(\ rst.MoveNext Wend End Sub

(10)调动信息打印

Option Explicit

Public conn As New ADODB.Connection Public rs As New ADODB.Recordset Public rst As New ADODB.Recordset Public db As String Private sSql As String Public fnt As Integer Public X As Integer Public Y As Integer

Private Sub dlist_Click()

46

搜索更多关于: vb课程设计说明书格式 的文档
vb课程设计说明书格式.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c9qkt82yo7l9f98j84o1b_13.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top