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

📄 frm_xqinfomd.frm

📁 小区物业管理系统,(vb6+SQLServer2000+使用说明)
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Top             =   2925
         Width           =   900
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "竣工日期:"
         Height          =   180
         Left            =   3495
         TabIndex        =   25
         Top             =   1425
         Width           =   900
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "负责人:"
         Height          =   180
         Left            =   4305
         TabIndex        =   24
         Top             =   465
         Width           =   720
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "小区名称:"
         Height          =   180
         Left            =   2325
         TabIndex        =   23
         Top             =   510
         Width           =   900
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "居住面积:"
         Height          =   180
         Left            =   285
         TabIndex        =   22
         Top             =   3405
         Width           =   900
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "占地面积:"
         Height          =   180
         Left            =   285
         TabIndex        =   21
         Top             =   2910
         Width           =   900
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "备    注:"
         Height          =   180
         Left            =   285
         TabIndex        =   20
         Top             =   2475
         Width           =   900
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "地    址:"
         Height          =   180
         Left            =   285
         TabIndex        =   19
         Top             =   1935
         Width           =   900
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "交工日期:"
         Height          =   180
         Left            =   285
         TabIndex        =   18
         Top             =   1455
         Width           =   900
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "小区说明:"
         Height          =   180
         Left            =   285
         TabIndex        =   17
         Top             =   960
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "小区编号:"
         Height          =   180
         Left            =   285
         TabIndex        =   16
         Top             =   495
         Width           =   900
      End
   End
   Begin MSAdodcLib.Adodc adodc1 
      Height          =   375
      Left            =   930
      Top             =   5250
      Width           =   1800
      _ExtentX        =   3175
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      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          =   660
      Left            =   6240
      TabIndex        =   30
      Top             =   4170
      Width           =   2700
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   350
         Left            =   1410
         TabIndex        =   32
         Top             =   210
         Width           =   1000
      End
      Begin VB.CommandButton Command1 
         Caption         =   "更新"
         Height          =   350
         Left            =   300
         TabIndex        =   31
         Top             =   210
         Width           =   1000
      End
   End
End
Attribute VB_Name = "Frm_xqinfomd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()   '更新
    Adodc1.Recordset.UpdateBatch
    MsgBox "修改成功", , "系统提示"
    'Adodc1.Refresh
End Sub
'
'Private Sub Command3_Click()   '第一个
'    Adodc1.RecordSource = "select * from tab_wxinfo"
'End Sub
'
'Private Sub Command4_Click()   '上一个
'    Adodc1.RecordSource = "select * from tab_wxinfo"
'End Sub
'
'Private Sub Command5_Click()   '下一个
'    Adodc1.RecordSource = "select * from tab_wxinfo"
'End Sub
'Private Sub Command6_Click()   '最后一个
'
'End Sub
'


Private Sub Command2_Click()  '退出
    Frm_xqinfo.Show
    Unload Me
    Me.Hide
End Sub
Private Sub Command3_Click()  '第一条
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveFirst
                DTPicker1.Value = Adodc1.Recordset.Fields("交工日期")
        DTPicker2.Value = Adodc1.Recordset.Fields("竣工日期")

    Else
        MsgBox "没有记录!", , "系统提示"
    End If
End Sub
Private Sub Command4_Click()  '上一条
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MovePrevious

        If Adodc1.Recordset.BOF Then
        Adodc1.Recordset.MoveFirst
                DTPicker1.Value = Adodc1.Recordset.Fields("交工日期")
        DTPicker2.Value = Adodc1.Recordset.Fields("竣工日期")
End If
    Else
        MsgBox "没有记录!", , "系统提示"
    End If
End Sub
Private Sub Command5_Click()  '下一条
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveNext
        If Adodc1.Recordset.EOF Then
        Adodc1.Recordset.MoveLast
                DTPicker1.Value = Adodc1.Recordset.Fields("交工日期")
        DTPicker2.Value = Adodc1.Recordset.Fields("竣工日期")
End If
    Else
        MsgBox "没有记录!", , "系统提示"
    End If
End Sub
Private Sub Command6_Click()  '最后一条
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then

    Adodc1.Recordset.MoveLast
            DTPicker1.Value = Adodc1.Recordset.Fields("交工日期")
        DTPicker2.Value = Adodc1.Recordset.Fields("竣工日期")

Else
        MsgBox "没有记录!", , "系统提示"
    End If
End Sub

Private Sub Form_Load()
    DTPicker1.Value = Date
    DTPicker2.Value = Date
    '自定义路径
    Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_wygl.mdb;Persist Security Info=False"
    Adodc1.RecordSource = "select * from tab_xqinfo"
    Adodc1.Refresh
    Image1.Picture = LoadPicture(App.Path & "\image\小区.jpg")
End Sub

⌨️ 快捷键说明

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