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

📄 frmchukugl2.frm

📁 能实现数据库的查询,修改,实用于一些用户的要求,实现基本的数据库功能.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmchukugl2 
   BackColor       =   &H0080FF80&
   Caption         =   "器材出库管理"
   ClientHeight    =   3615
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7650
   LinkTopic       =   "Form2"
   ScaleHeight     =   3615
   ScaleWidth      =   7650
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1320
      TabIndex        =   10
      Top             =   840
      Width           =   1815
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   5160
      TabIndex        =   9
      Top             =   840
      Width           =   1935
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1320
      TabIndex        =   8
      Top             =   1320
      Width           =   1815
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   5160
      TabIndex        =   7
      Top             =   1320
      Width           =   1935
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   1320
      TabIndex        =   6
      Top             =   1800
      Width           =   1815
   End
   Begin VB.TextBox Text6 
      Height          =   375
      Left            =   5160
      TabIndex        =   5
      Top             =   1800
      Width           =   1935
   End
   Begin VB.TextBox Text7 
      Height          =   375
      Left            =   1320
      TabIndex        =   4
      Top             =   2280
      Width           =   5775
   End
   Begin VB.TextBox Text8 
      Height          =   375
      Left            =   3240
      TabIndex        =   3
      Top             =   2760
      Width           =   615
   End
   Begin VB.TextBox Text9 
      Height          =   375
      Left            =   2280
      TabIndex        =   2
      Top             =   2760
      Width           =   615
   End
   Begin VB.TextBox Text10 
      Height          =   375
      Left            =   5760
      TabIndex        =   1
      Top             =   2760
      Width           =   1335
   End
   Begin VB.TextBox Text11 
      Height          =   375
      Left            =   1320
      TabIndex        =   0
      Top             =   2760
      Width           =   615
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "器材出库管理"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   42
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   1215
      Left            =   1200
      TabIndex        =   23
      Top             =   0
      Width           =   7335
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "器材代码"
      Height          =   495
      Left            =   240
      TabIndex        =   22
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "器材名称"
      Height          =   495
      Left            =   4080
      TabIndex        =   21
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "存储单位"
      Height          =   495
      Left            =   240
      TabIndex        =   20
      Top             =   1440
      Width           =   1215
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "库存标准"
      Height          =   495
      Left            =   4080
      TabIndex        =   19
      Top             =   1440
      Width           =   1215
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "库存数量"
      Height          =   495
      Left            =   240
      TabIndex        =   18
      Top             =   1920
      Width           =   1215
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "补充数量"
      Height          =   495
      Left            =   4080
      TabIndex        =   17
      Top             =   1920
      Width           =   1215
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "入库时间"
      Height          =   495
      Left            =   240
      TabIndex        =   16
      Top             =   2880
      Width           =   1215
   End
   Begin VB.Label Label9 
      BackStyle       =   0  'Transparent
      Caption         =   "供货单位"
      Height          =   495
      Left            =   240
      TabIndex        =   15
      Top             =   2400
      Width           =   1215
   End
   Begin VB.Label Label10 
      BackStyle       =   0  'Transparent
      Caption         =   "操作员"
      Height          =   495
      Left            =   4920
      TabIndex        =   14
      Top             =   2880
      Width           =   615
   End
   Begin VB.Label Label11 
      BackStyle       =   0  'Transparent
      Caption         =   "年"
      Height          =   375
      Left            =   2040
      TabIndex        =   13
      Top             =   2880
      Width           =   375
   End
   Begin VB.Label Label12 
      BackStyle       =   0  'Transparent
      Caption         =   "月"
      Height          =   495
      Left            =   3000
      TabIndex        =   12
      Top             =   2880
      Width           =   375
   End
   Begin VB.Label Label13 
      BackStyle       =   0  'Transparent
      Caption         =   "日"
      Height          =   375
      Left            =   3960
      TabIndex        =   11
      Top             =   2880
      Width           =   495
   End
End
Attribute VB_Name = "Frmchukugl2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Frmchukugl.Show
 
 Unload Me
 
End Sub

Private Sub Form_Load()

Dim rs As New ADODB.Recordset   '定义记录集对象
    
    Dim strCnn As String          '定义字符串变量
    strCnn = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=wei"
    Set cn = New ADODB.Connection
    cn.Open strCnn
    
    Set rs = New ADODB.Recordset
    rs.CursorLocation = adUseClient
    rs.CursorType = adOpenStatic
    rs.LockType = adLockBatchOptimistic
   

'Dim q1 As Char
'Dim q2 As Char


 If Text4.Text > Text5.Text Then
  
   MsgBox "库存不足是否订货"
   
 End If

End Sub

⌨️ 快捷键说明

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