📄 module1.bas
字号:
Attribute VB_Name = "Module1"
Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Public conn As New ADODB.Connection
Public rs As New ADODB.Recordset
Public cmd As New ADODB.Command
Public employee_id As String
Public account_type As String
Public account_id As String
'连接数据库
Public Sub connection_sql()
conn.ConnectionString = "provider=sqloledb.1;integrated security=sspi;" + _
"initial catalog=bank;data source=WXJ-PC\SQLEXPRESS"
conn.Open
cmd.ActiveConnection = conn
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -