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

📄 frm_badj.frm

📁 物业管理系统在一本书上的数据光盘
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      _ExtentX        =   3704
      _ExtentY        =   609
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tab_pb"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Frame Frame3 
      Height          =   705
      Left            =   3315
      TabIndex        =   23
      Top             =   2460
      Width           =   3165
      Begin VB.CommandButton Command11 
         Caption         =   "退出"
         Height          =   400
         Left            =   2520
         TabIndex        =   30
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command10 
         Caption         =   "浏览"
         Height          =   400
         Left            =   1920
         TabIndex        =   29
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command8 
         Caption         =   "修改"
         Height          =   400
         Left            =   690
         TabIndex        =   27
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command6 
         Caption         =   "添加"
         Height          =   400
         Left            =   60
         TabIndex        =   25
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command5 
         Caption         =   "保存"
         Height          =   400
         Left            =   60
         TabIndex        =   24
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command9 
         Caption         =   "取消"
         Height          =   400
         Left            =   690
         TabIndex        =   28
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command7 
         Caption         =   "删除"
         Height          =   400
         Left            =   1305
         TabIndex        =   26
         Top             =   225
         Width           =   615
      End
      Begin VB.CommandButton Command12 
         Caption         =   "更新"
         Height          =   360
         Left            =   1395
         TabIndex        =   48
         Top             =   225
         Width           =   555
      End
   End
   Begin VB.Frame Frame2 
      Height          =   690
      Left            =   165
      TabIndex        =   18
      Top             =   2475
      Width           =   3090
      Begin VB.CommandButton Command4 
         Caption         =   ">|"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   345
         Left            =   2265
         TabIndex        =   22
         Top             =   240
         Width           =   735
      End
      Begin VB.CommandButton Command3 
         Caption         =   ">"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   345
         Left            =   1530
         TabIndex        =   21
         Top             =   240
         Width           =   735
      End
      Begin VB.CommandButton Command2 
         Caption         =   "<"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   345
         Left            =   780
         TabIndex        =   20
         Top             =   240
         Width           =   735
      End
      Begin VB.CommandButton Command1 
         Caption         =   "|<"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   345
         Left            =   45
         TabIndex        =   19
         Top             =   240
         Width           =   735
      End
   End
   Begin VB.TextBox Text7 
      DataField       =   "日期"
      DataSource      =   "Adodc1"
      Height          =   345
      Left            =   3255
      TabIndex        =   0
      Text            =   "Text7"
      Top             =   1560
      Width           =   975
   End
End
Attribute VB_Name = "frm_badj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim KeyCode As String
Private Sub Command1_Click()
Frame1.Visible = False
Frame4.Visible = True
Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command10_Click()
Frm_pbinfo.Show
End Sub
Private Sub Command11_Click()
Unload Me
End Sub
Private Sub Command12_Click()
Command7.Visible = True
Me.Visible = False
Adodc1.Recordset.UpdateBatch
MsgBox "修改成功"
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
Frame1.Visible = False
Frame4.Visible = True
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command3_Click()
Frame1.Visible = False
Frame4.Visible = True
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast
End Sub
Private Sub Command4_Click()
Frame1.Visible = False
Frame4.Visible = True
Adodc1.Recordset.MoveLast
End Sub
Private Sub Command5_Click()
Set adors = cn.Execute("insert into tab_pb values(" & Text1 & ",'" & Text6 & "','" & Text2 & "','" & Text3 & "','" & Text5 & "','" & Text8 & "','" & Text4 & "','" & Text7 & "') ")
MsgBox "数据保存成功", 32, "管理信息系统"
Command6.Visible = True
Command5.Visible = False
Adodc1.Refresh
End Sub
Private Sub Command6_Click()
Frame1.Visible = True
Frame4.Visible = False
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Command5.Visible = True
Command9.Visible = True
Command6.Visible = False
Command8.Visible = False
Adodc1.RecordSource = "select * from tab_pb"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
If Adodc1.Recordset.EOF = False Then
Adodc1.Recordset.MoveLast
Text1.Text = Val(Adodc1.Recordset.Fields("编号")) + 1
Else
End If
Else
Text1.Text = 1
End If
End Sub
Private Sub Command7_Click()
Frame4.Visible = True
Frame1.Visible = False
Dim myval As String
Adodc1.RecordSource = "select * from tab_pb"
If Adodc1.Recordset.RecordCount > 0 Then
myval = MsgBox("确定删除吗?", vbYesNo)
If myval = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Refresh
Else
End If
Else
MsgBox "数据库中没有记录要删除"
End If
End Sub
Private Sub Command8_Click()
Command12.Visible = True
Command7.Visible = False
End Sub
Private Sub Command9_Click()
Command6.Visible = True
Command5.Visible = False
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub
Private Sub DTPicker1_Change()
Text7.Text = DTPicker1.Value
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text6.SetFocus
End If
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text3.SetFocus
End If

End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text4.SetFocus
End If

End Sub
Private Sub Text4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text5.SetFocus
End If

End Sub

Private Sub Text5_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text8.SetFocus
End If

End Sub

Private Sub Text6_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text2.SetFocus

End If

End Sub

⌨️ 快捷键说明

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