?? 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 + -