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

📄 form_info.frm

📁 vb做的
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      EndProperty
      BeginProperty Column03 
         DataField       =   "生日"
         Caption         =   "生日"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column04 
         DataField       =   "电话号码"
         Caption         =   "电话号码"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         DataField       =   "手机号码"
         Caption         =   "手机号码"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column06 
         DataField       =   "QQ"
         Caption         =   "QQ"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column07 
         DataField       =   "电子邮件"
         Caption         =   "电子邮件"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column08 
         DataField       =   "地址"
         Caption         =   "地址"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column09 
         DataField       =   "邮编"
         Caption         =   "邮编"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column10 
         DataField       =   "备注"
         Caption         =   "备注"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column11 
         DataField       =   "相片"
         Caption         =   "相片"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   1094.74
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1184.882
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   645.165
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   1635.024
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   1454.74
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   1005.165
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   2085.166
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   7800
      Top             =   1440
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   661
      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         =   $"Form_info.frx":007C
      OLEDBString     =   $"Form_info.frx":0117
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 通迅录"
      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.Label Label1 
      Caption         =   "电话号码"
      Height          =   255
      Index           =   4
      Left            =   4680
      TabIndex        =   25
      Top             =   1320
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "生日"
      Height          =   255
      Index           =   3
      Left            =   4920
      TabIndex        =   24
      Top             =   960
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "性别"
      Height          =   255
      Index           =   2
      Left            =   4920
      TabIndex        =   23
      Top             =   540
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "手机号码"
      Height          =   255
      Index           =   5
      Left            =   4680
      TabIndex        =   22
      Top             =   1680
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "姓名"
      Height          =   255
      Index           =   1
      Left            =   4920
      TabIndex        =   21
      Top             =   120
      Width           =   495
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      DataField       =   "相片"
      DataSource      =   "Adodc1"
      Height          =   1095
      Left            =   7320
      Stretch         =   -1  'True
      Top             =   120
      Width           =   1695
   End
   Begin VB.Label Label1 
      Caption         =   "邮编"
      Height          =   255
      Index           =   9
      Left            =   5040
      TabIndex        =   9
      Top             =   2400
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "备注"
      Height          =   255
      Index           =   11
      Left            =   7320
      TabIndex        =   4
      Top             =   1800
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "地址"
      Height          =   255
      Index           =   8
      Left            =   5040
      TabIndex        =   3
      Top             =   2040
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "电子邮件"
      Height          =   255
      Index           =   7
      Left            =   4680
      TabIndex        =   2
      Top             =   3240
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "QQ"
      Height          =   255
      Index           =   6
      Left            =   5160
      TabIndex        =   1
      Top             =   2820
      Width           =   255
   End
End
Attribute VB_Name = "Form_info"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub DBGrid1_Click()

End Sub

Private Sub Command1_Click()
Adodc1.Recordset.AddNew
End Sub

Private Sub Command2_Click()
Adodc1.Recordset.Update
End Sub

Private Sub Command3_Click()
Adodc1.Recordset.Delete
End Sub

Private Sub Command4_Click()
Adodc1.Recordset.CancelUpdate
End Sub

Private Sub Command5_Click()
    CommonDialog1.FileName = ""
    CommonDialog1.ShowOpen
    
    If CommonDialog1.FileName <> "" Then
      Image1.Picture = LoadPicture(CommonDialog1.FileName)
    End If
End Sub

Private Sub Command6_Click()
Adodc1.RecordSource = "select * from 通迅录"

Adodc1.Refresh
End Sub

Private Sub Command7_Click()
If Adodc1.Recordset.BOF Then
   Adodc1.Recordset.MoveFirst
MsgBox "已是第一条记录了哟~~"
Else
Adodc1.Recordset.MovePrevious
End If
End Sub

Private Sub Command8_Click()
If Adodc1.Recordset.EOF Then
   Adodc1.Recordset.MoveLast
MsgBox "已是最后一条记录了哟~~"
Else
Adodc1.Recordset.MoveNext
End If
End Sub

Private Sub Command9_Click()
Dim capitulation As String
Dim haha As String
capitulation = Combo2.Text
haha = Text3.Text

Adodc1.RecordSource = "select * from 通迅录 where " & capitulation & " =  '" & haha & "'"

Adodc1.Refresh

If Adodc1.Recordset.EOF Then '
MsgBox "对不起,找不到你要的数据!"

End If
End Sub

⌨️ 快捷键说明

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