⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module1.bas

📁 guan yu pai ke xi tong de ruan jian
💻 BAS
字号:
Attribute VB_Name = "Module1"
Public Connection As String

Public Updata As Boolean
Dim fso As New FileSystemObject, fil As file



Sub Main()
On Error GoTo ErrFile
 bool = False
 xInt = 0
  Set fil = fso.GetFile(App.Path & "\dept.mdb")
  Connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & fil & ";Persist Security Info=False"

'Form_student.Show
'Form_studentsubject.Show
' Form_teacher.Show
'Form_classroomtime.Show
'MDIForm1.Show
'Form1.Show
 
 
 
    Exit Sub
ErrFile:
 MsgBox "系统所需的数据库" & Error.Description & ",请验证文件所在的路径!", vbCritical, "排课系统"
   Set fso = Nothing
   Set fil = Nothing
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -