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

📄 module1.bas

📁 一套适用于超市
💻 BAS
字号:
Attribute VB_Name = "Module1"
 Public cs As Connection
 Public rstu As Recordset
 Public ruser As Recordset
 Public rbj As Recordset
 Public rpwd As Recordset
 Public Loged As Integer
 Public i As Integer
 
'Public Sub LoginSQLServer()
  'Set cs = New Connection
  'cs.CursorLocation = adUseClient
   ' cs.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=chaoshi"
 'cs.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=chaoshi;Initial File Name= " & App.Path & "\database\chaoshi_Data.MDF"
'End Sub


Public Sub LoginAccess()
  Set cs = New Connection
  cs.CursorLocation = adUseClient
  cs.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\database\chaoshi.mdb"
End Sub

⌨️ 快捷键说明

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