📄 module1.bas
字号:
Attribute VB_Name = "Module1"
Public h As Integer
Public Sub lian(str As String, cn, rs)
Set cn = New Connection
With cn
.Provider = "sqloledb"
.ConnectionString = "user id=sa;pwd=123;data source=(local);initial catalog=skcgl"
.Open
End With
Set rs = New Recordset
With rs
Set .ActiveConnection = cn
.CursorLocation = adUseClient
.CursorType = adOpenKeyset
.Open str, cn, adOpenKeyset, adUseClient
End With
End Sub
Public Sub sh()
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form7
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -